コード例 #1
0
ファイル: SubMap.cs プロジェクト: Guiedo/BehaviorIsManaged
 public SubMap(Map map, Cell[] cells, SubMapBinder binder)
 {
     Map = map;
     Cells = cells;
     SubMapId = binder.SubMapId;
     m_neighbours = binder.Neighbours;
 }
コード例 #2
0
ファイル: SubMap.cs プロジェクト: volgar1x/BehaviorIsManaged
 public SubMap(Map map, Cell[] cells, SubMapBinder binder)
 {
     Map          = map;
     Cells        = cells;
     SubMapId     = binder.SubMapId;
     m_neighbours = binder.Neighbours;
 }
コード例 #3
0
        public MapTravel(SubMapTransition[] transitions, SubMapBinder[] subMaps)
        {
            Transitions = transitions;
            SubMaps = subMaps;

            if (Transitions.Length != SubMaps.Length)
                throw new ArgumentException("Transitions.Length != SubMaps.Length");
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #6
0
 public AdjacentSubMap(SubMapBinder subMap, ICell[] changeCells)
 {
     SubMap      = subMap;
     ChangeCells = changeCells;
 }
コード例 #7
0
 public AdjacentSubMap(SubMapBinder subMap, ICell[] changeCells)
 {
     SubMap = subMap;
     ChangeCells = changeCells;
 }