C# Class Drought.Entity.MovableEntity

Datei anzeigen Open project: kiniry-teaching/UCD Class Usage Examples

Public Properties

Property Type Description
hasMoved bool
radius float
uniqueID int

Public Methods

Method Description
MovableEntity ( GameState gameState, LevelInfo aLevelInfo, Model3D aModel, Path aPath, int uid, float spd, float rad, int maxh, int maxw, float waterSuckAmt, int waterRadius ) : System
addWater ( float amt ) : void
checkStaticCollision ( MovableEntity a, MovableEntity b ) : bool
getOrientation ( ) : Matrix
getPath ( ) : Path
getPosition ( ) : Vector3
hurt ( int oww ) : void
isDead ( ) : bool
isFullOfWater ( ) : bool
rebuildRing ( ) : void
removeAllWater ( ) : void
render ( GraphicsDevice graphics, Camera camera, Sun sun ) : void
renderInfoBox ( GraphicsDevice graphics, Camera camera ) : void
setOrientation ( Matrix anOrientation ) : void
setPath ( Path aPath ) : void
setPosition ( Vector3 aPosition ) : void
setSelected ( bool aSelected ) : void
update ( ) : void
wait ( int numUpdates ) : void

Protected Methods

Method Description
checkForWater ( ) : void
suckTehWaterz ( ) : void

Private Methods

Method Description
move ( ) : void
setOrientation ( ) : void

Method Details

MovableEntity() public method

public MovableEntity ( GameState gameState, LevelInfo aLevelInfo, Model3D aModel, Path aPath, int uid, float spd, float rad, int maxh, int maxw, float waterSuckAmt, int waterRadius ) : System
gameState Drought.State.GameState
aLevelInfo Drought.World.LevelInfo
aModel Drought.Graphics.Model3D
aPath Path
uid int
spd float
rad float
maxh int
maxw int
waterSuckAmt float
waterRadius int
return System

addWater() public method

public addWater ( float amt ) : void
amt float
return void

checkForWater() protected method

protected checkForWater ( ) : void
return void

checkStaticCollision() public static method

public static checkStaticCollision ( MovableEntity a, MovableEntity b ) : bool
a MovableEntity
b MovableEntity
return bool

getOrientation() public method

public getOrientation ( ) : Matrix
return Matrix

getPath() public method

public getPath ( ) : Path
return Path

getPosition() public method

public getPosition ( ) : Vector3
return Vector3

hurt() public method

public hurt ( int oww ) : void
oww int
return void

isDead() public method

public isDead ( ) : bool
return bool

isFullOfWater() public method

public isFullOfWater ( ) : bool
return bool

rebuildRing() public method

public rebuildRing ( ) : void
return void

removeAllWater() public method

public removeAllWater ( ) : void
return void

render() public method

public render ( GraphicsDevice graphics, Camera camera, Sun sun ) : void
graphics GraphicsDevice
camera Drought.World.Camera
sun Drought.World.Sun
return void

renderInfoBox() public method

public renderInfoBox ( GraphicsDevice graphics, Camera camera ) : void
graphics GraphicsDevice
camera Drought.World.Camera
return void

setOrientation() public method

public setOrientation ( Matrix anOrientation ) : void
anOrientation Matrix
return void

setPath() public method

public setPath ( Path aPath ) : void
aPath Path
return void

setPosition() public method

public setPosition ( Vector3 aPosition ) : void
aPosition Vector3
return void

setSelected() public method

public setSelected ( bool aSelected ) : void
aSelected bool
return void

suckTehWaterz() protected method

protected suckTehWaterz ( ) : void
return void

update() public method

public update ( ) : void
return void

wait() public method

public wait ( int numUpdates ) : void
numUpdates int
return void

Property Details

hasMoved public_oe property

public bool hasMoved
return bool

radius public_oe property

public float radius
return float

uniqueID public_oe property

public int uniqueID
return int