Beispiel #1
0
void ManagerBase::notifyDetach(Player* p, int seat)
{
    Message m(MsgType::Detach);
    auto msg = m.get<DetachMsg>();
    msg->set_player(p->name());
    msg->set_seat(seat);
    notify(&m);
}
Beispiel #2
0
void init_player(Player *p, int x, int y) {
    set_player(p, x, y);
}