Exemplo n.º 1
0
 //Tors kod
 public PlayerssTurn(Texture2D background, Texture2D inventoryMenu, Texture2D healthMenu, controlForUI menyn, List <UI> listOfUI, Player player, SpriteBatch spriteBatch, SpriteFont spriteFont) : base(background, inventoryMenu, healthMenu, menyn, listOfUI, player, spriteBatch, spriteFont)
 {
     //felet är klassen laddas in på fel ställe
 }
Exemplo n.º 2
0
        public NormalBattle(Texture2D background, Texture2D inventoryMenu, Texture2D healthMenu, controlForUI menyn, List <UI> listOfUI, Player player, SpriteFont spriteFont, SpriteBatch spriteBatch) : base(background, inventoryMenu, healthMenu, menyn, listOfUI, player, spriteBatch, spriteFont)
        {
            //gör spelar börjar i striden
            turn = Turn.player;

            playersHealthbar = new Healthbars(player, new Vector2(150, 140), Color.Green);
            EnemysHealthbat  = new Healthbars(Game1.battleOpponent, new Vector2(1100, 120), Color.Red);
            playersTurn      = new PlayerssTurn(battleTexture, menuBattle, healthMenuBattle, mainBattleMenu, UIList, player, spriteBatch, spriteFont);
        }
Exemplo n.º 3
0
 // Tors temporärts
 public EnemysTurn(Texture2D background, Texture2D inventoryMenu, Texture2D healthMenu, controlForUI menyn, List <UI> listOfUI, Player player, SpriteFont spriteFont, SpriteBatch spriteBatch) : base(background, inventoryMenu, healthMenu, menyn, listOfUI, player, spriteFont, spriteBatch)
 {
 }