Example #1
0
 public BuildEntity(Map currentMap)
     : base(currentMap)
 {
     BuildQueue = new Queue<LevelObjectType> ();
 }
Example #2
0
 public HumanTower(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Tower")));
 }
Example #3
0
 public HumanArcher(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Bowman")));
 }
Example #4
0
 public HumanPeasant(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Peasant")));
 }
Example #5
0
 public Corpse(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Corpse")));
 }
Example #6
0
 public OrcRaider(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Rider")));
 }
Example #7
0
        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;
        }
Example #8
0
 public HumanConjurer(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Wizard")));
 }
Example #9
0
 public OrcWarlock(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Wizard")));
 }
Example #10
0
 public HumanStormwind(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Stormwind")));
 }
Example #11
0
 public OrcSpearman(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Axethrower")));
 }
Example #12
0
 public Building(Map currentMap)
     : base(currentMap)
 {
 }
Example #13
0
 public HumanFootman(Map currentMap)
     : base(currentMap)
 {
     sprite = new UnitSprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Warrior")));
 }
Example #14
0
 public Unit(Map currentMap)
     : base(currentMap)
 {
 }
Example #15
0
 public OrcFarm(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Farm")));
 }