public class BulletState
extends java.lang.Object
Constructor | Description |
---|---|
BulletState(WallState wallState,
TankState tankState) |
create the bullet with wallState and tankState
|
Modifier and Type | Method | Description |
---|---|---|
long |
getCreateTime() |
get the time of that bullet created
|
void |
update(TankState tank) |
update the bullet position after it shooting
|
public void update(TankState tank)
tank
- is the tank which bullet belongs topublic long getCreateTime()