Ejemplo n.º 1
0
        public TeamStructures(Teams team, Vec2 baseTileIds, Vec2 baseTowerTileIds,
		                      Vec2 topTowerTileIds, Vec2 bottomTowerTileIds)
        {
			Structures = Utilities.MakeList<IStructure>(
				Base = new Base(team, GetFeetPosForStructure(baseTileIds)),
				BaseTower = new Tower(StructureTypes.BaseTower, team, GetFeetPosForStructure(baseTowerTileIds)),
				TopTower = new Tower(StructureTypes.TopTower, team, GetFeetPosForStructure(topTowerTileIds)),
				BottomTower = new Tower(StructureTypes.BottomTower, team, GetFeetPosForStructure(bottomTowerTileIds)));
        }
Ejemplo n.º 2
0
        public DrawableTower(Tower tower, bool isAlly)
			: base(tower)
        {
			Ally = isAlly;

			Position = new Vector2(tower.Rectangle.X + tower.Rectangle.Width / 2f,
			                       tower.Rectangle.Bottom);

			Alerting = false;

			Tower = null;
        }