示例#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;
                }
            }
        }
 public TileManager(GameManager gameManager)
 {
     myGameManager = gameManager;
     loadedTiles = new JsDictionary<string, Tile>();
 }
 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;
 }
 public UnitManager(GameManager gameManager)
 {
     myGameManager = gameManager;
 }
示例#7
0
 public Person(GameManager gameManager)
     : base(gameManager)
 {
 }
 public DrawUnitManager(GameManager gameManager)
     : base(gameManager)
 {
 }