Property | Type | Description | |
---|---|---|---|
alive | bool | ||
baseWorld | System.Matrix | ||
position | System.Vector3 | ||
rotation | System.Vector3 | ||
scale | System.Vector3 |
Property | Type | Description | |
---|---|---|---|
boundingBox | BoundingBox | ||
boundingSphere | BoundingSphere | ||
events | List |
||
myGame | MyGame |
Method | Description | |
---|---|---|
Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System | ||
addEvent ( MyGame.Event ev ) : void |
Add event to the event queue
|
|
collideWith ( |
||
update ( GameTime gameTime ) : void |
Allows the unit to update itself.
|
public Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System | ||
game | MyGame | |
position | System.Vector3 | |
rotation | System.Vector3 | |
scale | System.Vector3 | |
return | System |
public addEvent ( MyGame.Event ev ) : void | ||
ev | MyGame.Event | Event to be added |
return | void |
public update ( GameTime gameTime ) : void | ||
gameTime | GameTime | Provides a snapshot of timing values. |
return | void |