Search
Preparing search index...
The search index is not available
eiaSteroid
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
eiaSteroids
Asteroid
Class Asteroid
Describes an asteroid with individual size and shape (type)
Hierarchy
Moveable
Asteroid
Index
Constructors
constructor
Properties
expendable
hit
Radius
position
size
type
velocity
Methods
draw
hit
is
Hit
By
move
Constructors
constructor
new
Asteroid
(
_size
:
number
, _position
?:
Vector
)
:
Asteroid
Parameters
_size:
number
Optional
_position:
Vector
Returns
Asteroid
Properties
expendable
expendable
:
boolean
= false
Protected
hit
Radius
hit
Radius
:
number
= 0
position
position
:
Vector
size
size
:
number
Private
type
type
:
number
velocity
velocity
:
Vector
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
Asteroid
constructor
expendable
hit
Radius
position
size
type
velocity
draw
hit
is
Hit
By
move
Generated using
TypeDoc
Describes an asteroid with individual size and shape (type)