Search
Preparing search index...
The search index is not available
eiaSteroid
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
eiaSteroids
Projectile
Class Projectile
Describes a small projectile as fired by the
Ufo
s
Hierarchy
Moveable
Projectile
Hotspot
Laser
Index
Constructors
constructor
Properties
expendable
hit
Radius
lifetime
position
velocity
max
Lifetime
Methods
draw
hit
is
Hit
By
move
Constructors
constructor
new
Projectile
(
_position
:
Vector
, _velocity
:
Vector
)
:
Projectile
Parameters
_position:
Vector
_velocity:
Vector
Returns
Projectile
Properties
expendable
expendable
:
boolean
= false
Protected
hit
Radius
hit
Radius
:
number
= 0
Protected
lifetime
lifetime
:
number
= Projectile.maxLifetime
position
position
:
Vector
velocity
velocity
:
Vector
Static
Protected
max
Lifetime
max
Lifetime
:
number
= 2
Methods
draw
draw
(
)
:
void
Returns
void
hit
hit
(
)
:
void
Returns
void
is
Hit
By
is
Hit
By
(
_partner
:
Moveable
)
:
boolean
Parameters
_partner:
Moveable
Returns
boolean
move
move
(
_timeslice
:
number
)
:
void
Parameters
_timeslice:
number
Returns
void
eia
Steroids
Projectile
constructor
expendable
hit
Radius
lifetime
position
velocity
max
Lifetime
draw
hit
is
Hit
By
move
Generated using
TypeDoc
Describes a small projectile as fired by the Ufos