예제 #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;
                }
            }
        }
예제 #2
0
 public TileManager(GameManager gameManager)
 {
     myGameManager = gameManager;
     loadedTiles = new JsDictionary<string, Tile>();
 }
예제 #3
0
 public DrawMapManager(GameManager gameManager, int totalRegionWidth, int totalRegionHeight)
     : base(gameManager, totalRegionWidth, totalRegionHeight)
 {
 }
 public DrawTileManager(GameManager gameManager)
     : base(gameManager)
 {
 }
예제 #5
0
 public Unit(GameManager gameManager)
 {
     myGameManager = gameManager;
     MoveRate = 2;
 }
예제 #6
0
 public UnitManager(GameManager gameManager)
 {
     myGameManager = gameManager;
 }
예제 #7
0
 public Person(GameManager gameManager)
     : base(gameManager)
 {
 }
 public DrawUnitManager(GameManager gameManager)
     : base(gameManager)
 {
 }