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)));
        }
Beispiel #2
0
        public DrawableBase(Base theBase, bool ally)
			: base(theBase)
        {
			Position = new Vector2(theBase.Rectangle.X + theBase.Rectangle.Width / 2f,
			                       theBase.Rectangle.Bottom);

			LifeBar = new DrawableBaseLifeBar(ally) { 
				Position = new Vector2(0f,-250f),
				MaxHealth = theBase.MaxHealth,
				Health = theBase.Health };

			Diamond = null;
			ticks = 0;
        }