Example #1
0
 private void handleMapInput()
 {
     if (mapState.Equals(MapState.World))
     {
         handleWorldMapInput();
     }
     else if (mapState.Equals(MapState.Region))
     {
         handleRegionMapInput();
     }
 }
Example #2
0
        public void Equals_12_ThrowsInvalidCastException()
        {
            var state = new MapState(1);

            state.Set(1, (ushort)PlayerType.player1, 13);
            state.Equals(12);
        }
Example #3
0
        public void Equals_Other_IsFalse()
        {
            var act = new MapState(1);

            act.Set(1, (ushort)PlayerType.player1, 13);

            var other = new MapState(1);

            other.Set(1, (ushort)PlayerType.player1, 14);

            Assert.IsFalse(act.Equals(other));
        }
Example #4
0
 public void manualUpdate(ref DataPool worldData)
 {
     if (mapState.Equals(MapState.World))
     {
         handleWorldInput(ref worldData);
     }
     else if (mapState.Equals(MapState.Region))
     {
         handleRegionInput(ref worldData);
     }
 }