Ejemplo n.º 1
0
 public MahjongDealerIndicator(MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind)
 {
     m_Game      = game;
     m_Position  = position;
     m_Direction = direction;
     m_Wind      = wind;
 }
Ejemplo n.º 2
0
		public MahjongDealerIndicator( MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind )
		{
			m_Game = game;
			m_Position = position;
			m_Direction = direction;
			m_Wind = wind;
		}
Ejemplo n.º 3
0
 public MahjongDealerIndicator(MahjongGame game, Point2D position, MahjongPieceDirection direction, MahjongWind wind)
 {
     _game      = game;
     _position  = position;
     _direction = direction;
     _wind      = wind;
 }
Ejemplo n.º 4
0
		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();
		}
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
		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 );
		}
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
 private void Deserialize(IGenericReader reader, int version)
 {
     _position  = reader.ReadPoint2D();
     _direction = (MahjongPieceDirection)reader.ReadInt();
     _wind      = (MahjongWind)reader.ReadInt();
 }