C# Class WpfApplication7.Tower

Mostrar archivo Open project: NCCUCS-Windows-Programming/SpaceWar Class Usage Examples

Public Properties

Property Type Description
_num int
_posX int
_posY int
_position int[]
ray_time float

Public Methods

Method Description
Tower ( int posX, int posY, float startTime, int num ) : System
Update ( ) : void
drawTower ( ) : void
explosion ( ) : void

Private Methods

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

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

Method Details

Tower() public method

public Tower ( int posX, int posY, float startTime, int num ) : System
posX int
posY int
startTime float
num int
return System

Update() public method

public Update ( ) : void
return void

drawTower() public method

public drawTower ( ) : void
return void

explosion() public method

public explosion ( ) : void
return void

Property Details

_num public_oe property

public int _num
return int

_posX public_oe property

public int _posX
return int

_posY public_oe property

public int _posY
return int

_position public_oe property

public int[] _position
return int[]

ray_time public_oe property

public float ray_time
return float