C# Class UHSampleGame.CoreObjects.Base.Base

Inheritance: StaticTileObject
Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
PlayerNum int
Position Vector3
TeamNum int
Tile UHSampleGame.TileSystem.Tile

Protected Properties

Свойство Type Description
goalBase Base
health int
scale float
tile UHSampleGame.TileSystem.Tile

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnBaseDestroyed ( ) : void
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( Vector3 position ) : void

Private Methods

Méthode Description
Destroy ( ) : void

Method Details

Base() public méthode

public Base ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model
Résultat System

Base() public méthode

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

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

GetTile() public méthode

public GetTile ( ) : Tile
Résultat UHSampleGame.TileSystem.Tile

HitBase() public méthode

public HitBase ( int damage ) : void
damage int
Résultat void

IsThereAPathTo() public méthode

public IsThereAPathTo ( int tileID, int blockedTile ) : bool
tileID int
blockedTile int
Résultat bool

OnBaseDestroyed() protected méthode

protected OnBaseDestroyed ( ) : void
Résultat void

RotateX() public méthode

public RotateX ( float rotation ) : void
rotation float
Résultat void

RotateY() public méthode

public RotateY ( float rotation ) : void
rotation float
Résultat void

RotateZ() public méthode

public RotateZ ( float rotation ) : void
rotation float
Résultat void

SetGoalBase() public méthode

public SetGoalBase ( Base goalBase ) : void
goalBase Base
Résultat void

SetPlayerNum() public méthode

public SetPlayerNum ( int newPlayerNum ) : void
newPlayerNum int
Résultat void

SetTeamNum() public méthode

public SetTeamNum ( int newTeamNum ) : void
newTeamNum int
Résultat void

SetupCamera() protected méthode

Sets up default camera information
protected SetupCamera ( ) : void
Résultat void

SetupModel() public méthode

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

SetupModel() protected méthode

protected SetupModel ( Vector3 position ) : void
position Vector3
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateTransforms() public méthode

public UpdateTransforms ( ) : void
Résultat void

UpdateView() public méthode

public UpdateView ( ) : void
Résultat void

Property Details

PlayerNum public_oe property

public int PlayerNum
Résultat int

Position public_oe property

public Vector3 Position
Résultat Vector3

TeamNum public_oe property

public int TeamNum
Résultat int

Tile public_oe property

public Tile,UHSampleGame.TileSystem Tile
Résultat UHSampleGame.TileSystem.Tile

goalBase protected_oe property

protected Base,UHSampleGame.CoreObjects.Base goalBase
Résultat Base

health protected_oe property

protected int health
Résultat int

scale protected_oe property

protected float scale
Résultat float

tile protected_oe property

protected Tile,UHSampleGame.TileSystem tile
Résultat UHSampleGame.TileSystem.Tile