Example #1
0
        private void EndFight()
        {
            fightState = FightState.idle;
            enemyCreature.destroy();
            fightWorld = null;

            activeBox.destroy();
            gameManager.FightEnded();
        }
Example #2
0
        public void StartFight(Creature playerCreature, Creature otherCreature, Land land, Vector2 position)
        {
            fightWorld = new FightWorld(land, position, playerCreature, otherCreature);

            this.playerCreature = playerCreature;
            this.enemyCreature = otherCreature;

            Rectangle rect = gameManager.getActiveBoxArea();
            activeBox = new ActiveBox(gameManager.world, new Camera(rect.Width, rect.Height, fightWorld));
            activeBox.position = UserInterfaceManager.getUserInterfaceArea("activebox").getCenter();
            activeBox.texture.filter = Color.Transparent;

            fadeTime = 1f;
            fightState = FightState.starting;
        }
Example #3
0
        public void StartFight(Creature playerCreature, Creature otherCreature, Land land, Vector2 position)
        {
            fightWorld = new FightWorld(land, position, playerCreature, otherCreature);

            this.playerCreature = playerCreature;
            this.enemyCreature  = otherCreature;

            Rectangle rect = gameManager.getActiveBoxArea();

            activeBox                = new ActiveBox(gameManager.world, new Camera(rect.Width, rect.Height, fightWorld));
            activeBox.position       = UserInterfaceManager.getUserInterfaceArea("activebox").getCenter();
            activeBox.texture.filter = Color.Transparent;

            fadeTime   = 1f;
            fightState = FightState.starting;
        }
Example #4
0
 public FightCreature createFightCreature(FightWorld fight)
 {
     return new FightCreature(this, fight);
 }
Example #5
0
 public FightCreature createFightCreature(FightWorld fight)
 {
     return(new FightCreature(this, fight));
 }
Example #6
0
 public FightObject(FightWorld world)
     : base(world)
 {
 }
Example #7
0
        private void EndFight()
        {
            fightState = FightState.idle;
            enemyCreature.destroy();
            fightWorld = null;

            activeBox.destroy();
            gameManager.FightEnded();
        }
Example #8
0
 public FightCreature(Creature creature, FightWorld fight)
     : base(fight)
 {
     texture        = new DrawableTexture(creature.getFightTexture(), this);
     texture.size.X = 30f;
 }
Example #9
0
 public FightObject(FightWorld world)
     : base(world)
 {
 }