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); }
void init_player(Player *p, int x, int y) { set_player(p, x, y); }