C# Class Drought.World.LevelInfo

Mostra file Open project: kiniry-teaching/UCD Class Usage Examples

Public Methods

Method Description
getFileName ( Level aLevel ) : string
getHeight ( float x, float y ) : float
getHeight ( int x, int y ) : float
getHeight ( ) : int
getNormal ( float x, float y ) : Vector3
getPoolAt ( int x, int y ) : Water
getPositionAt ( float x, float y ) : Vector3
getTextureValue ( float x, float y ) : Vector4
getWidth ( ) : int
initialise ( Level aLevel ) : void
setWaterPools ( Water pools ) : void

Private Methods

Method Description
distance ( float line1x, float line1y, float line2x, float line2y, float px, float py ) : float
distanceFromALine ( float pX, float pY, float lX0, float lY0, float lX1, float lY1 ) : float
initHeightMap ( String fileName ) : void
initNormalMap ( ) : void
initTextureMap ( String fileName ) : void

Method Details

getFileName() public static method

public static getFileName ( Level aLevel ) : string
aLevel Level
return string

getHeight() public method

public getHeight ( float x, float y ) : float
x float
y float
return float

getHeight() public method

public getHeight ( int x, int y ) : float
x int
y int
return float

getHeight() public method

public getHeight ( ) : int
return int

getNormal() public method

public getNormal ( float x, float y ) : Vector3
x float
y float
return Vector3

getPoolAt() public method

public getPoolAt ( int x, int y ) : Water
x int
y int
return Water

getPositionAt() public method

public getPositionAt ( float x, float y ) : Vector3
x float
y float
return Vector3

getTextureValue() public method

public getTextureValue ( float x, float y ) : Vector4
x float
y float
return Vector4

getWidth() public method

public getWidth ( ) : int
return int

initialise() public method

public initialise ( Level aLevel ) : void
aLevel Level
return void

setWaterPools() public method

public setWaterPools ( Water pools ) : void
pools Water
return void