private void EndFight() { fightState = FightState.idle; enemyCreature.destroy(); fightWorld = null; activeBox.destroy(); gameManager.FightEnded(); }
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; }
public FightCreature createFightCreature(FightWorld fight) { return new FightCreature(this, fight); }
public FightCreature createFightCreature(FightWorld fight) { return(new FightCreature(this, fight)); }
public FightObject(FightWorld world) : base(world) { }
public FightCreature(Creature creature, FightWorld fight) : base(fight) { texture = new DrawableTexture(creature.getFightTexture(), this); texture.size.X = 30f; }