C# 클래스 WpfApplication7.Bomb

파일 보기 프로젝트 열기: NCCUCS-Windows-Programming/SpaceWar 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_Is_alive bool
_position int[]
player_on bool[]

공개 메소드들

메소드 설명
Bomb ( MainWindow window, float waitTime, int power, float positionX, float positionY, int owner, int position, float worldTime ) : System
Explosion ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
check_map ( int num_x, int num_y ) : bool

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

메소드 상세

Bomb() 공개 메소드

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
리턴 System

Explosion() 공개 메소드

public Explosion ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

_Is_alive 공개적으로 프로퍼티

public bool _Is_alive
리턴 bool

_position 공개적으로 프로퍼티

public int[] _position
리턴 int[]

player_on 공개적으로 프로퍼티

public bool[] player_on
리턴 bool[]