Свойство | Type | Description | |
---|---|---|---|
alive | bool | ||
baseWorld | System.Matrix | ||
position | System.Vector3 | ||
rotation | System.Vector3 | ||
scale | System.Vector3 |
Свойство | Type | Description | |
---|---|---|---|
boundingBox | BoundingBox | ||
boundingSphere | BoundingSphere | ||
events | List |
||
myGame | MyGame |
Méthode | 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 | |
Résultat | System |
public addEvent ( MyGame.Event ev ) : void | ||
ev | MyGame.Event | Event to be added |
Résultat | void |
public collideWith ( |
||
otherUnit | ||
Résultat | bool |
public update ( GameTime gameTime ) : void | ||
gameTime | GameTime | Provides a snapshot of timing values. |
Résultat | void |
protected BoundingSphere boundingSphere | ||
Résultat | BoundingSphere |