41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StgSharp.Entities
|
|
{
|
|
public class EliteEnemy:IEntity
|
|
{
|
|
public bool _selectalbe;
|
|
|
|
internal Launcher<EntityPartical> _awardLauncher;
|
|
internal LinkedList<Launcher<EntityPartical>> _commonBulletLauncher;
|
|
internal Launcher<EntityPartical> _dieBulletLauncher;
|
|
|
|
public Launcher<EntityPartical> AwardLauncher { get; set; }
|
|
public LinkedList<Launcher<EntityPartical>> CommonBulletLauncher { get; set; }
|
|
public Launcher<EntityPartical> DieBulletLauncher { get; set; }
|
|
|
|
internal void InternalDieOperation(Pool home)
|
|
{
|
|
_dieBulletLauncher.Launch();
|
|
_awardLauncher.Launch();
|
|
this._id.Remove();
|
|
}
|
|
|
|
internal override void OnRenderFrame()
|
|
{
|
|
this.OnUpdate();
|
|
foreach (Launcher<EntityPartical> launcher in CommonBulletLauncher)
|
|
{
|
|
launcher.Launch();
|
|
}
|
|
this.OnRender();
|
|
}
|
|
|
|
public virtual void OnRender() => new NotImplementedException();
|
|
|
|
public virtual void OnUpdate() => new NotImplementedException();
|
|
}
|
|
}
|