C# Class Drought.Entity.MovableEntity

Afficher le fichier Open project: kiniry-teaching/UCD Class Usage Examples

Méthodes publiques

Свойство Type Description
hasMoved bool
radius float
uniqueID int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
checkForWater ( ) : void
suckTehWaterz ( ) : void

Private Methods

Méthode Description
move ( ) : void
setOrientation ( ) : void

Method Details

MovableEntity() public méthode

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
Résultat System

addWater() public méthode

public addWater ( float amt ) : void
amt float
Résultat void

checkForWater() protected méthode

protected checkForWater ( ) : void
Résultat void

checkStaticCollision() public static méthode

public static checkStaticCollision ( MovableEntity a, MovableEntity b ) : bool
a MovableEntity
b MovableEntity
Résultat bool

getOrientation() public méthode

public getOrientation ( ) : Matrix
Résultat Matrix

getPath() public méthode

public getPath ( ) : Path
Résultat Path

getPosition() public méthode

public getPosition ( ) : Vector3
Résultat Vector3

hurt() public méthode

public hurt ( int oww ) : void
oww int
Résultat void

isDead() public méthode

public isDead ( ) : bool
Résultat bool

isFullOfWater() public méthode

public isFullOfWater ( ) : bool
Résultat bool

rebuildRing() public méthode

public rebuildRing ( ) : void
Résultat void

removeAllWater() public méthode

public removeAllWater ( ) : void
Résultat void

render() public méthode

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

renderInfoBox() public méthode

public renderInfoBox ( GraphicsDevice graphics, Camera camera ) : void
graphics GraphicsDevice
camera Drought.World.Camera
Résultat void

setOrientation() public méthode

public setOrientation ( Matrix anOrientation ) : void
anOrientation Matrix
Résultat void

setPath() public méthode

public setPath ( Path aPath ) : void
aPath Path
Résultat void

setPosition() public méthode

public setPosition ( Vector3 aPosition ) : void
aPosition Vector3
Résultat void

setSelected() public méthode

public setSelected ( bool aSelected ) : void
aSelected bool
Résultat void

suckTehWaterz() protected méthode

protected suckTehWaterz ( ) : void
Résultat void

update() public méthode

public update ( ) : void
Résultat void

wait() public méthode

public wait ( int numUpdates ) : void
numUpdates int
Résultat void

Property Details

hasMoved public_oe property

public bool hasMoved
Résultat bool

radius public_oe property

public float radius
Résultat float

uniqueID public_oe property

public int uniqueID
Résultat int