Exemplo n.º 1
0
 public LosSystem(GameSystemManager manager, Tile[,] gameTiles)
 {
     SystemManager   = manager;
     _systemEntities = new List <Entity>();
     _gameTiles      = gameTiles;
     _tileDictionary = new TileTypeDictionary();
     _fowEnabled     = false;
 }
Exemplo n.º 2
0
 public MovementSystem(GameSystemManager manager, Tile[,] gameTiles, GameStateHelper gameState)
 {
     SystemManager   = manager;
     _systemEntities = new List <Entity>();
     _gameTiles      = gameTiles;
     _tileDictionary = new TileTypeDictionary();
     _gameState      = gameState;
 }
Exemplo n.º 3
0
 public TargetingSystem(GameSystemManager manager, Tile[,] gameTiles, GameStateHelper gameStateHelper)
 {
     SystemManager    = manager;
     _systemEntities  = new List <Entity>();
     _targetedCoords  = new Vector2i(0, 0);
     _gameStateHelper = gameStateHelper;
     _gameTiles       = gameTiles;
     _tileDictionary  = new TileTypeDictionary();
     StopTargetingMode();
 }
Exemplo n.º 4
0
        public MapEditor()
        {
            CursorXPosition = 0;
            CursorYPosition = 0;
            WindowXPosition = 0;
            WindowYPosition = 0;
            _cursorSize     = 1;

            mapInfo = new MapFile(new Tile[50, 50], new List <Spawn>());
            for (int y = 0; y < mapInfo.TileSet.GetLength(1); y++)
            {
                for (int x = 0; x < mapInfo.TileSet.GetLength(0); x++)
                {
                    mapInfo.TileSet[x, y].TileType = EnumTileTypes.Snow;
                }
            }

            TileDictionary = new TileTypeDictionary();

            MainLoop();
        }
Exemplo n.º 5
0
 private void LoadTileTextures()
 {
     _tileDictionary = new TileTypeDictionary();
 }
Exemplo n.º 6
0
 private PathfindingHelper()
 {
     _tileDict = new TileTypeDictionary();
 }