Example #1
0
 public SubMap(Map map, Cell[] cells, SubMapBinder binder)
 {
     Map = map;
     Cells = cells;
     SubMapId = binder.SubMapId;
     m_neighbours = binder.Neighbours;
 }
Example #2
0
 public SubMap(Map map, Cell[] cells, SubMapBinder binder)
 {
     Map          = map;
     Cells        = cells;
     SubMapId     = binder.SubMapId;
     m_neighbours = binder.Neighbours;
 }
Example #3
0
        public MapTravel(SubMapTransition[] transitions, SubMapBinder[] subMaps)
        {
            Transitions = transitions;
            SubMaps = subMaps;

            if (Transitions.Length != SubMaps.Length)
                throw new ArgumentException("Transitions.Length != SubMaps.Length");
        }
Example #4
0
        private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success)
        {
            CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded;

            if (!success)
                Index = -1;
            else
            {
                Index++;
            }

            OnTransitionEnded(transition, success);
        }
Example #5
0
        private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success)
        {
            CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded;

            if (!success)
            {
                Index = -1;
            }
            else
            {
                Index++;
            }

            OnTransitionEnded(transition, success);
        }
 public AdjacentSubMap(SubMapBinder subMap, ICell[] changeCells)
 {
     SubMap      = subMap;
     ChangeCells = changeCells;
 }
 public AdjacentSubMap(SubMapBinder subMap, ICell[] changeCells)
 {
     SubMap = subMap;
     ChangeCells = changeCells;
 }