C# Class WpfApplication7.Tower

Afficher le fichier Open project: NCCUCS-Windows-Programming/SpaceWar Class Usage Examples

Méthodes publiques

Свойство Type Description
_num int
_posX int
_posY int
_position int[]
ray_time float

Méthodes publiques

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

Private Methods

Méthode Description
check_map ( int num_x, int num_y ) : bool

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

Method Details

Tower() public méthode

public Tower ( int posX, int posY, float startTime, int num ) : System
posX int
posY int
startTime float
num int
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void

drawTower() public méthode

public drawTower ( ) : void
Résultat void

explosion() public méthode

public explosion ( ) : void
Résultat void

Property Details

_num public_oe property

public int _num
Résultat int

_posX public_oe property

public int _posX
Résultat int

_posY public_oe property

public int _posY
Résultat int

_position public_oe property

public int[] _position
Résultat int[]

ray_time public_oe property

public float ray_time
Résultat float