Exemple #1
0
 public EnemyTracker(GameProps gameProps, int[,] map, IConsole console, HeadPositionReducer headPositionReducer)
 {
     _gameProps           = gameProps;
     _console             = console;
     _headPositionReducer = headPositionReducer;
     map.CloneMap();
     _binaryMap    = BinaryTrack.FromCartesian(gameProps, map);
     _currentTrack = BinaryTrack.StartEmptyTrack(gameProps);
 }
Exemple #2
0
 private EnemyTracker(GameProps gameProps, BinaryTrack binaryMap, BinaryTrack currentTrack,
                      BinaryTrack exactTrack, IConsole console, HeadPositionReducer headPositionReducer, char lastMoveDirection)
 {
     _console               = console;
     _headPositionReducer   = headPositionReducer;
     _gameProps             = gameProps;
     _binaryMap             = binaryMap;
     _currentTrack          = currentTrack;
     _exactEnemyTrack       = exactTrack;
     _lastMoveMoveDirection = lastMoveDirection;
     binaryMap.ToCartesian();
 }