C# 클래스 CannonGame.Cannon

상속: GameObject
파일 보기 프로젝트 열기: obcilion/xnaKanonSpill 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Direction Vector2
aiming bool
ball Ball
hasShot bool
placing bool

공개 메소드들

메소드 설명
Cannon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction ) : System
Control ( ) : void
Draw ( SpriteBatch spriteBatch ) : void
Fire ( Ball ball ) : void
updateRotation ( ) : void

메소드 상세

Cannon() 공개 메소드

public Cannon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
direction Vector2
리턴 System

Control() 공개 메소드

public Control ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Fire() 공개 메소드

public Fire ( Ball ball ) : void
ball Ball
리턴 void

updateRotation() 공개 메소드

public updateRotation ( ) : void
리턴 void

프로퍼티 상세

Direction 공개적으로 프로퍼티

public Vector2 Direction
리턴 Vector2

aiming 공개적으로 프로퍼티

public bool aiming
리턴 bool

ball 공개적으로 프로퍼티

public Ball,CannonGame ball
리턴 Ball

hasShot 공개적으로 프로퍼티

public bool hasShot
리턴 bool

placing 공개적으로 프로퍼티

public bool placing
리턴 bool