C# Class SamplyGame.Enemy

Base class for all kind of enemies
Inheritance: Aircraft
Show file Open project: xamarin/urho-samples

Protected Methods

Method Description
Init ( ) : void
MoveRandomly ( float minX, float maxX, float minY, float maxY, float duration ) : void

Set boundaries for random movements

OnUpdate ( float timeStep ) : void
StartShooting ( ) : void

Method Details

Init() protected method

protected Init ( ) : void
return void

MoveRandomly() protected method

Set boundaries for random movements
protected MoveRandomly ( float minX, float maxX, float minY, float maxY, float duration ) : void
minX float
maxX float
minY float
maxY float
duration float
return void

OnUpdate() protected method

protected OnUpdate ( float timeStep ) : void
timeStep float
return void

StartShooting() protected method

protected StartShooting ( ) : void
return void