C# Class UHSampleGame.CoreObjects.Base.Base

Inheritance: StaticTileObject
Show file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Properties

Property Type Description
PlayerNum int
Position Vector3
TeamNum int
Tile UHSampleGame.TileSystem.Tile

Protected Properties

Property Type Description
goalBase Base
health int
scale float
tile UHSampleGame.TileSystem.Tile

Public Methods

Method Description
Base ( Model model ) : System
Base ( int playerNum, int teamNum, BaseType baseType, Tile tile ) : System
Draw ( GameTime gameTime ) : void
GetTile ( ) : Tile
HitBase ( int damage ) : void
IsThereAPathTo ( int tileID, int blockedTile ) : bool
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetGoalBase ( Base goalBase ) : void
SetPlayerNum ( int newPlayerNum ) : void
SetTeamNum ( int newTeamNum ) : void
SetupModel ( Model newModel, Vector3 position ) : void
Update ( GameTime gameTime ) : void
UpdateTransforms ( ) : void
UpdateView ( ) : void

Protected Methods

Method Description
OnBaseDestroyed ( ) : void
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( Vector3 position ) : void

Private Methods

Method Description
Destroy ( ) : void

Method Details

Base() public method

public Base ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model
return System

Base() public method

public Base ( int playerNum, int teamNum, BaseType baseType, Tile tile ) : System
playerNum int
teamNum int
baseType BaseType
tile UHSampleGame.TileSystem.Tile
return System

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GetTile() public method

public GetTile ( ) : Tile
return UHSampleGame.TileSystem.Tile

HitBase() public method

public HitBase ( int damage ) : void
damage int
return void

IsThereAPathTo() public method

public IsThereAPathTo ( int tileID, int blockedTile ) : bool
tileID int
blockedTile int
return bool

OnBaseDestroyed() protected method

protected OnBaseDestroyed ( ) : void
return void

RotateX() public method

public RotateX ( float rotation ) : void
rotation float
return void

RotateY() public method

public RotateY ( float rotation ) : void
rotation float
return void

RotateZ() public method

public RotateZ ( float rotation ) : void
rotation float
return void

SetGoalBase() public method

public SetGoalBase ( Base goalBase ) : void
goalBase Base
return void

SetPlayerNum() public method

public SetPlayerNum ( int newPlayerNum ) : void
newPlayerNum int
return void

SetTeamNum() public method

public SetTeamNum ( int newTeamNum ) : void
newTeamNum int
return void

SetupCamera() protected method

Sets up default camera information
protected SetupCamera ( ) : void
return void

SetupModel() public method

public SetupModel ( Model newModel, Vector3 position ) : void
newModel Microsoft.Xna.Framework.Graphics.Model
position Vector3
return void

SetupModel() protected method

protected SetupModel ( Vector3 position ) : void
position Vector3
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

UpdateTransforms() public method

public UpdateTransforms ( ) : void
return void

UpdateView() public method

public UpdateView ( ) : void
return void

Property Details

PlayerNum public property

public int PlayerNum
return int

Position public property

public Vector3 Position
return Vector3

TeamNum public property

public int TeamNum
return int

Tile public property

public Tile,UHSampleGame.TileSystem Tile
return UHSampleGame.TileSystem.Tile

goalBase protected property

protected Base,UHSampleGame.CoreObjects.Base goalBase
return Base

health protected property

protected int health
return int

scale protected property

protected float scale
return float

tile protected property

protected Tile,UHSampleGame.TileSystem tile
return UHSampleGame.TileSystem.Tile