C# 클래스 MyGame.Unit

파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
alive bool
baseWorld System.Matrix
position System.Vector3
rotation System.Vector3
scale System.Vector3

보호된 프로퍼티들

프로퍼티 타입 설명
boundingBox BoundingBox
boundingSphere BoundingSphere
events List
myGame MyGame

공개 메소드들

메소드 설명
Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
addEvent ( MyGame.Event ev ) : void

Add event to the event queue

collideWith ( Unit otherUnit ) : bool
update ( GameTime gameTime ) : void

Allows the unit to update itself.

메소드 상세

Unit() 공개 메소드

public Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
game MyGame
position System.Vector3
rotation System.Vector3
scale System.Vector3
리턴 System

addEvent() 공개 메소드

Add event to the event queue
public addEvent ( MyGame.Event ev ) : void
ev MyGame.Event Event to be added
리턴 void

collideWith() 공개 메소드

public collideWith ( Unit otherUnit ) : bool
otherUnit Unit
리턴 bool

update() 공개 메소드

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
리턴 void

프로퍼티 상세

alive 공개적으로 프로퍼티

public bool alive
리턴 bool

baseWorld 공개적으로 프로퍼티

public Matrix,System baseWorld
리턴 System.Matrix

boundingBox 보호되어 있는 프로퍼티

protected BoundingBox boundingBox
리턴 BoundingBox

boundingSphere 보호되어 있는 프로퍼티

protected BoundingSphere boundingSphere
리턴 BoundingSphere

events 보호되어 있는 프로퍼티

protected List events
리턴 List

myGame 보호되어 있는 프로퍼티

protected MyGame myGame
리턴 MyGame

position 공개적으로 프로퍼티

public Vector3,System position
리턴 System.Vector3

rotation 공개적으로 프로퍼티

public Vector3,System rotation
리턴 System.Vector3

scale 공개적으로 프로퍼티

public Vector3,System scale
리턴 System.Vector3