C# Class UHSampleGame.CoreObjects.Units.Unit

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

Méthodes publiques

Свойство Type Description
CurrentTileID int
Damage int
Health int
HealthCapacity int
ID int
MoneyToGive int
PathLength int
PlayerNum int
PlayerToAttack int
Position Vector3
Scale float
Status UnitStatus
TeamNum int
Transforms Matrix
Type UnitType
XPToGive int

Protected Properties

Свойство Type Description
currentTile UHSampleGame.TileSystem.Tile
focalTile UHSampleGame.TileSystem.Tile
goalTile UHSampleGame.TileSystem.Tile
health int
previousTile UHSampleGame.TileSystem.Tile

Méthodes publiques

Méthode Description
Activate ( ) : void
Deploy ( Tile baseTile, Tile goalTile, int playerToAttack ) : void
Draw ( GameTime gameTime ) : void
Equals ( object obj ) : bool
GetPathLength ( ) : int
IsActive ( ) : bool
IsDeployed ( ) : bool
PathToGoal ( ) : List
RotateToFace ( Vector3 O, Vector3 P, Vector3 U ) : void
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetCurrentTile ( int tileID ) : void
SetFocalPointAndVelocity ( int newTileID ) : void
SetScale ( float newScale ) : void
TakeDamage ( int damage ) : bool
TakeDamage ( int damage ) : void
ToString ( ) : string
Unit ( Model model, Base goalBase ) : System
Unit ( UnitType unitType ) : System
Update ( GameTime gameTime ) : bool
Update ( GameTime gameTime ) : void
UpdatePath ( ) : void
UpdatePositionAndRotation ( ) : void
UpdateScaleRotations ( ) : void
UpdateTargetPlayer ( Tile &newGoalTile, int newTargetPlayer ) : void
UpdateTransforms ( ) : void

Private Methods

Méthode Description
CheckIfStuck ( ) : bool
GetTile ( ) : Tile
IsNewTile ( ) : bool
OnDied ( ) : void
SetCurrentTile ( Tile tile ) : void
SetFocalPointAndVelocity ( Tile newTile ) : void

Method Details

Activate() public méthode

public Activate ( ) : void
Résultat void

Deploy() public méthode

public Deploy ( Tile baseTile, Tile goalTile, int playerToAttack ) : void
baseTile UHSampleGame.TileSystem.Tile
goalTile UHSampleGame.TileSystem.Tile
playerToAttack int
Résultat void

Draw() public méthode

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

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetPathLength() public méthode

public GetPathLength ( ) : int
Résultat int

IsActive() public méthode

public IsActive ( ) : bool
Résultat bool

IsDeployed() public méthode

public IsDeployed ( ) : bool
Résultat bool

PathToGoal() public méthode

public PathToGoal ( ) : List
Résultat List

RotateToFace() public méthode

public RotateToFace ( Vector3 O, Vector3 P, Vector3 U ) : void
O Vector3
P Vector3
U Vector3
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

SetCurrentTile() public méthode

public SetCurrentTile ( int tileID ) : void
tileID int
Résultat void

SetFocalPointAndVelocity() public méthode

public SetFocalPointAndVelocity ( int newTileID ) : void
newTileID int
Résultat void

SetScale() public méthode

public SetScale ( float newScale ) : void
newScale float
Résultat void

TakeDamage() public méthode

public TakeDamage ( int damage ) : bool
damage int
Résultat bool

TakeDamage() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

Unit() public méthode

public Unit ( Model model, Base goalBase ) : System
model Microsoft.Xna.Framework.Graphics.Model
goalBase UHSampleGame.CoreObjects.Base.Base
Résultat System

Unit() public méthode

public Unit ( UnitType unitType ) : System
unitType UnitType
Résultat System

Update() public méthode

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

Update() public méthode

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

UpdatePath() public méthode

public UpdatePath ( ) : void
Résultat void

UpdatePositionAndRotation() public méthode

public UpdatePositionAndRotation ( ) : void
Résultat void

UpdateScaleRotations() public méthode

public UpdateScaleRotations ( ) : void
Résultat void

UpdateTargetPlayer() public méthode

public UpdateTargetPlayer ( Tile &newGoalTile, int newTargetPlayer ) : void
newGoalTile UHSampleGame.TileSystem.Tile
newTargetPlayer int
Résultat void

UpdateTransforms() public méthode

public UpdateTransforms ( ) : void
Résultat void

Property Details

CurrentTileID public_oe property

public int CurrentTileID
Résultat int

Damage public_oe property

public int Damage
Résultat int

Health public_oe property

public int Health
Résultat int

HealthCapacity public_oe property

public int HealthCapacity
Résultat int

ID public_oe property

public int ID
Résultat int

MoneyToGive public_oe property

public int MoneyToGive
Résultat int

PathLength public_oe property

public int PathLength
Résultat int

PlayerNum public_oe property

public int PlayerNum
Résultat int

PlayerToAttack public_oe property

public int PlayerToAttack
Résultat int

Position public_oe property

public Vector3 Position
Résultat Vector3

Scale public_oe property

public float Scale
Résultat float

Status public_oe property

public UnitStatus Status
Résultat UnitStatus

TeamNum public_oe property

public int TeamNum
Résultat int

Transforms public_oe property

public Matrix Transforms
Résultat Matrix

Type public_oe property

public UnitType Type
Résultat UnitType

XPToGive public_oe property

public int XPToGive
Résultat int

currentTile protected_oe property

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

focalTile protected_oe property

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

goalTile protected_oe property

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

health protected_oe property

protected int health
Résultat int

previousTile protected_oe property

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