Search
Preparing search index...
The search index is not available
eiaSteroid
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
eiaSteroids
Laser
Class Laser
The laser beam pointing from the
Gun
to the
Hotspot
Hierarchy
Projectile
Laser
Index
Constructors
constructor
Properties
charge
expendable
hit
Radius
lifetime
path
position
velocity
max
Lifetime
Methods
draw
hit
is
Hit
By
move
Constructors
constructor
new
Laser
(
_path
:
Function
, _charge
:
number
)
:
Laser
Parameters
_path:
Function
_charge:
number
Returns
Laser
Properties
Private
charge
charge
:
number
expendable
expendable
:
boolean
= false
Protected
hit
Radius
hit
Radius
:
number
= 0
Protected
lifetime
lifetime
:
number
= Projectile.maxLifetime
Private
path
path
:
Function
position
position
:
Vector
velocity
velocity
:
Vector
Static
Protected
max
Lifetime
max
Lifetime
:
number
= 0.1
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
Laser
constructor
charge
expendable
hit
Radius
lifetime
path
position
velocity
max
Lifetime
draw
hit
is
Hit
By
move
Generated using
TypeDoc
The laser beam pointing from the Gun to the Hotspot