public MahjongDealerIndicator(MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind) { m_Game = game; m_Position = position; m_Direction = direction; m_Wind = wind; }
public MahjongDealerIndicator( MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind ) { m_Game = game; m_Position = position; m_Direction = direction; m_Wind = wind; }
public MahjongDealerIndicator(MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind) { _game = game; _position = position; _direction = direction; _wind = wind; }
public MahjongDealerIndicator( MahjongGame game, GenericReader reader ) { m_Game = game; int version = reader.ReadInt(); m_Position = reader.ReadPoint2D(); m_Direction = (MahjongPieceDirection) reader.ReadInt(); m_Wind = (MahjongWind) reader.ReadInt(); }
public MahjongDealerIndicator(MahjongGame game, GenericReader reader) { m_Game = game; int version = reader.ReadInt(); m_Position = reader.ReadPoint2D(); m_Direction = (MahjongPieceDirection)reader.ReadInt(); m_Wind = (MahjongWind)reader.ReadInt(); }
public void Move( Point2D position, MahjongPieceDirection direction, MahjongWind wind ) { MahjongPieceDim dim = GetDimensions( position, direction ); if ( !dim.IsValid() ) return; m_Position = position; m_Direction = direction; m_Wind = wind; m_Game.Players.SendGeneralPacket( true, true ); }
public void Move(Point2D position, MahjongPieceDirection direction, MahjongWind wind) { MahjongPieceDim dim = GetDimensions(position, direction); if (!dim.IsValid()) { return; } m_Position = position; m_Direction = direction; m_Wind = wind; m_Game.Players.SendGeneralPacket(true, true); }
public static void MoveDealerIndicator(MahjongGame game, NetState state, PacketReader pvSrc) { if (game == null || !game.Players.IsInGameDealer(state.Mobile)) { return; } MahjongPieceDirection direction = GetDirection(pvSrc.ReadByte()); MahjongWind wind = GetWind(pvSrc.ReadByte()); int y = pvSrc.ReadInt16(); int x = pvSrc.ReadInt16(); game.DealerIndicator.Move(new Point2D(x, y), direction, wind); }
private void Deserialize(IGenericReader reader, int version) { _position = reader.ReadPoint2D(); _direction = (MahjongPieceDirection)reader.ReadInt(); _wind = (MahjongWind)reader.ReadInt(); }