private void GenerateTrojan() { if (OGE.CurrentWorld.GetCollisionEntitiesType(CollisionType.Player).Count <= 0 || OGE.CurrentWorld.GetCollisionEntitiesType(CollisionType.Enemy).Count > BaseGenerator.MAXIMUM_GENRATION) { return; } TroyEnemy temp = new TroyEnemy(); temp.Position = Position; temp.GeneratedTroy(); OGE.CurrentWorld.AddEntity(temp); }
private void Summon() { TroyEnemy troy = new TroyEnemy(); troy.Position = new Vector2(Position.X, Position.Y); troy.JumpDirection(CurrentImage.Angle); troy.GeneratedTroy(); OGE.CurrentWorld.AddEntity(troy); troy = new TroyEnemy(); troy.Position = new Vector2(Position.X, Position.Y); troy.JumpDirection(CurrentImage.Angle + 90); troy.GeneratedTroy(); OGE.CurrentWorld.AddEntity(troy); troy = new TroyEnemy(); troy.Position = new Vector2(Position.X, Position.Y); troy.JumpDirection(CurrentImage.Angle + 180); troy.GeneratedTroy(); OGE.CurrentWorld.AddEntity(troy); troy = new TroyEnemy(); troy.Position = new Vector2(Position.X, Position.Y); troy.JumpDirection(CurrentImage.Angle + 270); troy.GeneratedTroy(); OGE.CurrentWorld.AddEntity(troy); status = BossState.Wait; waitAlarm.Start(); }