private GameEngine(Hero heroClass, int currentLevel) { this.Hero = heroClass; this.CurrentLevel = currentLevel; this.Loot = Loot.Create(this.CurrentLevel); this.LoadDefaultInfo(); this.Enemies = new List<Npc>(); this.LoadBosses(); this.GenerateTreasureChests(); }
public PlayerSprite(Texture2D sprite, Dictionary<AnimationKey, Animation> animation, Hero hero) : base(sprite, animation) { this.mSpriteTexture = sprite; this.Hero = hero; //initialize variables mDirection = Vector2.Zero; mSpeed = Vector2.Zero; currentLookingPosition = LookingPosition.LookDown; this.Position = new Vector2((float)hero.Location.X, (float)hero.Location.Y); }
public InventoryScreen(MainGame mGame) : base(mGame) { this.hero = this.MGame.Engine.Hero; }
public static GameEngine Start(Hero hero, int level) { return new GameEngine(hero, level); }