Property | Type | Description | |
---|---|---|---|
events | List |
Method | Description | |
---|---|---|
AddBullet ( Vector3 position, Vector3 rotation, Vector3 direction ) : void |
Add a new bullet at the specified position, rotation and direction
|
|
BulletsManager ( |
Constructor that initialize the bullet manager
|
|
Draw ( |
This method renders the current state.
|
|
Update ( |
Allows the component to run logic.
|
|
addEvent ( Event ev ) : void |
Add event to the event queue
|
Method | Description | |
---|---|---|
FireShots ( ) : void |
Fire a new bullet if the specified event(C_ATTACK_BULLET_END) was received
|
|
UpdateShots ( |
update the bullet if the bulltet out of range or collide with the monster remove it
|
public AddBullet ( Vector3 position, Vector3 rotation, Vector3 direction ) : void | ||
position | Vector3 | initial position of the new bullet |
rotation | Vector3 | rotation of the new bullet |
direction | Vector3 | Direction in which the bullet will move |
return | void |
public BulletsManager ( |
||
game | Instance of MyGame this game component is attached to | |
return | System |
public Draw ( |
||
gameTime | The elapsed game time. | |
return | void |
public Update ( |
||
gameTime | The gametime. | |
return | void |
protected UpdateShots ( |
||
gameTime | The game time | |
return | void |