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

            activeBox.destroy();
            gameManager.FightEnded();
        }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #4
0
 public FightCreature createFightCreature(FightWorld fight)
 {
     return new FightCreature(this, fight);
 }
Beispiel #5
0
 public FightCreature createFightCreature(FightWorld fight)
 {
     return(new FightCreature(this, fight));
 }
Beispiel #6
0
 public FightObject(FightWorld world)
     : base(world)
 {
 }
Beispiel #7
0
        private void EndFight()
        {
            fightState = FightState.idle;
            enemyCreature.destroy();
            fightWorld = null;

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