public BuildEntity(Map currentMap) : base(currentMap) { BuildQueue = new Queue<LevelObjectType> (); }
public HumanTower(Map currentMap) : base(currentMap) { sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Tower"))); }
public HumanArcher(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Bowman"))); }
public HumanPeasant(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Peasant"))); }
public Corpse(Map currentMap) : base(currentMap) { sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Corpse"))); }
public OrcRaider(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Rider"))); }
internal void LoadCampaignLevel(Race race, int level) { string basenameInfo = race + " " + level; LevelInfoResource levelInfo = WarFile.GetResourceByName(basenameInfo) as LevelInfoResource; LevelPassableResource levelPassable = WarFile.GetResource(levelInfo.PassableResourceIndex) as LevelPassableResource; LevelVisualResource levelVisual = WarFile.GetResource(levelInfo.VisualResourceIndex) as LevelVisualResource; if (InputHandler != null) { InputHandler.SetMapUnitOrder(MapUnitOrder.None); } CurrentMap = new Map(levelInfo, levelVisual, levelPassable); SetCameraOffset(levelInfo.StartCameraX * CurrentMap.TileWidth, levelInfo.StartCameraY * CurrentMap.TileHeight); CurrentMap.OnSelectedEntitiesChanged += HandleOnSelectedEntitiesChanged; }
public HumanConjurer(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Wizard"))); }
public OrcWarlock(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Wizard"))); }
public HumanStormwind(Map currentMap) : base(currentMap) { sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Stormwind"))); }
public OrcSpearman(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Axethrower"))); }
public Building(Map currentMap) : base(currentMap) { }
public HumanFootman(Map currentMap) : base(currentMap) { sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Warrior"))); }
public Unit(Map currentMap) : base(currentMap) { }
public OrcFarm(Map currentMap) : base(currentMap) { sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Farm"))); }