Exemplo n.º 1
0
        public MapManager(GameManager gameManager, int totalRegionWidth, int totalRegionHeight)
        {
            myGameManager = gameManager;
            myTotalRegionWidth = totalRegionWidth;
            myTotalRegionHeight = totalRegionHeight;
            GameMaps = new JsDictionary<string, GameMap>();
            GameMapLayouts = new List<GameMapLayout>();

            CollisionMap = new CollisionType[myTotalRegionWidth][];
            for (int x = 0; x < myTotalRegionWidth; x++) {
                CollisionMap[x] = new CollisionType[myTotalRegionHeight];
                for (int y = 0; y < myTotalRegionHeight; y++) {
                    CollisionMap[x][y] = 0;
                }
            }
        }
Exemplo n.º 2
0
 public TileManager(GameManager gameManager)
 {
     myGameManager = gameManager;
     loadedTiles = new JsDictionary<string, Tile>();
 }
Exemplo n.º 3
0
 public DrawMapManager(GameManager gameManager, int totalRegionWidth, int totalRegionHeight)
     : base(gameManager, totalRegionWidth, totalRegionHeight)
 {
 }
 public DrawTileManager(GameManager gameManager)
     : base(gameManager)
 {
 }
Exemplo n.º 5
0
 public Unit(GameManager gameManager)
 {
     myGameManager = gameManager;
     MoveRate = 2;
 }
Exemplo n.º 6
0
 public UnitManager(GameManager gameManager)
 {
     myGameManager = gameManager;
 }
Exemplo n.º 7
0
 public Person(GameManager gameManager)
     : base(gameManager)
 {
 }
 public DrawUnitManager(GameManager gameManager)
     : base(gameManager)
 {
 }