C# 클래스 WaveOculusDemoProject.Components.AsteroidFieldController

상속: Behavior
파일 보기 프로젝트 열기: WaveEngine/Samples

공개 메소드들

메소드 설명
AsteroidFieldController ( System.Vector3 sectorSize ) : System

Instantiates a new Asteroid field controller, with the size of one asteroid sector.

GetPositionByCoordinates ( int sectorX, int sectorY ) : System.Vector3

Gets sector position by its coordinates

GetSector ( System.Vector3 position, int &sectorX, int &sectorY ) : void

Gets asteroid coordinates by a world position

GetSectorTypeByCoords ( int sectorX, int sectorY ) : int

Gets sector type by its coordinates

보호된 메소드들

메소드 설명
Initialize ( ) : void

Initializes the asteroid field controller

Update ( System.TimeSpan gameTime ) : void

Update the asteroid field. If the player camera moves to a different sector, this controller must place each asteroids sectors in its correct place.

비공개 메소드들

메소드 설명
CleanSectorList ( ) : void

Clean the asteroid sector list.

GetFreeSteroidSector ( int sectorType, int lod ) : AsteroidSectorDecorator

Get a free asteroid sector.

Refresh ( ) : void

Refresh the asteroid field.

메소드 상세

AsteroidFieldController() 공개 메소드

Instantiates a new Asteroid field controller, with the size of one asteroid sector.
public AsteroidFieldController ( System.Vector3 sectorSize ) : System
sectorSize System.Vector3 The size of one asteroid sector
리턴 System

GetPositionByCoordinates() 공개 메소드

Gets sector position by its coordinates
public GetPositionByCoordinates ( int sectorX, int sectorY ) : System.Vector3
sectorX int X coord.
sectorY int Y coord.
리턴 System.Vector3

GetSector() 공개 메소드

Gets asteroid coordinates by a world position
public GetSector ( System.Vector3 position, int &sectorX, int &sectorY ) : void
position System.Vector3 Position in world space
sectorX int X coord.
sectorY int Y coord.
리턴 void

GetSectorTypeByCoords() 공개 메소드

Gets sector type by its coordinates
public GetSectorTypeByCoords ( int sectorX, int sectorY ) : int
sectorX int X coord.
sectorY int Y coord.
리턴 int

Initialize() 보호된 메소드

Initializes the asteroid field controller
protected Initialize ( ) : void
리턴 void

Update() 보호된 메소드

Update the asteroid field. If the player camera moves to a different sector, this controller must place each asteroids sectors in its correct place.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan
리턴 void