C# Class WpfApplication7.Bomb

Mostra file Open project: NCCUCS-Windows-Programming/SpaceWar Class Usage Examples

Public Properties

Property Type Description
_Is_alive bool
_position int[]
player_on bool[]

Public Methods

Method Description
Bomb ( MainWindow window, float waitTime, int power, float positionX, float positionY, int owner, int position, float worldTime ) : System
Explosion ( ) : void
Update ( ) : void

Private Methods

Method Description
check_map ( int num_x, int num_y ) : bool

如果撞到障礙物或是磚塊,回傳false

Method Details

Bomb() public method

public Bomb ( MainWindow window, float waitTime, int power, float positionX, float positionY, int owner, int position, float worldTime ) : System
window MainWindow
waitTime float
power int
positionX float
positionY float
owner int
position int
worldTime float
return System

Explosion() public method

public Explosion ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

_Is_alive public_oe property

public bool _Is_alive
return bool

_position public_oe property

public int[] _position
return int[]

player_on public_oe property

public bool[] player_on
return bool[]