C# 클래스 CannonGame.Ball

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

공개 프로퍼티들

프로퍼티 타입 설명
Enabled bool
Velocity Vector2
radius float

공개 메소드들

메소드 설명
Ball ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Draw ( SpriteBatch spriteBatch ) : void
obstacleCollision ( SolidObstacle o ) : void
update ( ) : void

비공개 메소드들

메소드 설명
intersects ( Rectangle rect ) : bool
wallCollisionCheck ( ) : void

메소드 상세

Ball() 공개 메소드

public Ball ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

Draw() 공개 메소드

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

obstacleCollision() 공개 메소드

public obstacleCollision ( SolidObstacle o ) : void
o SolidObstacle
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

Enabled 공개적으로 프로퍼티

public bool Enabled
리턴 bool

Velocity 공개적으로 프로퍼티

public Vector2 Velocity
리턴 Vector2

radius 공개적으로 프로퍼티

public float radius
리턴 float