C# Class UHSampleGame.CoreObjects.Towers.Tower

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

Méthodes publiques

Свойство Type Description
Cost int
Health int
HealthCapacity int
ID int
Level int
LevelString string
PlayerNum int
Position Vector3
Scale float
Status TowerStatus
TeamNum int
TotalInvestedCost int
Transforms Matrix
Type TowerType
UnitTypeToBuild UnitType
XP int
attackStrength int
destroyCost int
repairCost int
tile UHSampleGame.TileSystem.Tile
towerEnumType System.Enum[]
towerUpgradeEnumType System.Enum[]
towersToAttack List
unitToAttack Unit
upgradeCost int

Méthodes publiques

Méthode Description
Activate ( int playerNum, int teamNum ) : void
AttackUnit ( ) : void
CanUpgrade ( ) : bool
DestroyCost ( ) : int
DrawHud ( GameTime gameTime ) : void
InputDown ( ) : void
InputLeft ( ) : void
InputRight ( ) : void
InputUp ( ) : void
IsActive ( ) : bool
OnDied ( ) : void
RegisterAttackTower ( Tower &tower ) : void
RegisterAttackUnit ( GameEventArgs args ) : void
RegisterAttackUnit ( Unit &unit ) : void
Repair ( int money ) : int
RepairCost ( ) : int
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetScale ( float newScale ) : void
Setup ( Vector3 position ) : void
TakeDamage ( int damage ) : bool
Tower ( Model model, Tile tile ) : System
Tower ( TowerType type ) : System
UnregisterAttackTower ( Tower &tower ) : void
UnregisterAttackUnit ( Unit &unit ) : void
Update ( GameTime gameTime ) : void
UpdateTransforms ( ) : void
Upgrade ( int money ) : int
UpgradeCost ( ) : int
ValidateUnitInput ( ) : void
XPUpgrade ( ) : void

Private Methods

Méthode Description
Attack ( GameTime gameTime ) : void
BuildUnit ( GameTime gameTime ) : void
GetNewAttackUnit ( Unit unit ) : void
UpdateScaleRotations ( ) : void

Method Details

Activate() public méthode

public Activate ( int playerNum, int teamNum ) : void
playerNum int
teamNum int
Résultat void

AttackUnit() public méthode

public AttackUnit ( ) : void
Résultat void

CanUpgrade() public méthode

public CanUpgrade ( ) : bool
Résultat bool

DestroyCost() public méthode

public DestroyCost ( ) : int
Résultat int

DrawHud() public méthode

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

InputDown() public méthode

public InputDown ( ) : void
Résultat void

InputLeft() public méthode

public InputLeft ( ) : void
Résultat void

InputRight() public méthode

public InputRight ( ) : void
Résultat void

InputUp() public méthode

public InputUp ( ) : void
Résultat void

IsActive() public méthode

public IsActive ( ) : bool
Résultat bool

OnDied() public méthode

public OnDied ( ) : void
Résultat void

RegisterAttackTower() public méthode

public RegisterAttackTower ( Tower &tower ) : void
tower Tower
Résultat void

RegisterAttackUnit() public méthode

public RegisterAttackUnit ( GameEventArgs args ) : void
args UHSampleGame.Events.GameEventArgs
Résultat void

RegisterAttackUnit() public méthode

public RegisterAttackUnit ( Unit &unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
Résultat void

Repair() public méthode

public Repair ( int money ) : int
money int
Résultat int

RepairCost() public méthode

public RepairCost ( ) : int
Résultat int

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

SetScale() public méthode

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

Setup() public méthode

public Setup ( Vector3 position ) : void
position Vector3
Résultat void

TakeDamage() public méthode

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

Tower() public méthode

public Tower ( Model model, Tile tile ) : System
model Microsoft.Xna.Framework.Graphics.Model
tile UHSampleGame.TileSystem.Tile
Résultat System

Tower() public méthode

public Tower ( TowerType type ) : System
type TowerType
Résultat System

UnregisterAttackTower() public méthode

public UnregisterAttackTower ( Tower &tower ) : void
tower Tower
Résultat void

UnregisterAttackUnit() public méthode

public UnregisterAttackUnit ( Unit &unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
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

Upgrade() public méthode

public Upgrade ( int money ) : int
money int
Résultat int

UpgradeCost() public méthode

public UpgradeCost ( ) : int
Résultat int

ValidateUnitInput() public méthode

public ValidateUnitInput ( ) : void
Résultat void

XPUpgrade() public méthode

public XPUpgrade ( ) : void
Résultat void

Property Details

Cost public_oe property

public int Cost
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

Level public_oe property

public int Level
Résultat int

LevelString public_oe property

public string LevelString
Résultat string

PlayerNum public_oe property

public int PlayerNum
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 TowerStatus Status
Résultat TowerStatus

TeamNum public_oe property

public int TeamNum
Résultat int

TotalInvestedCost public_oe property

public int TotalInvestedCost
Résultat int

Transforms public_oe property

public Matrix Transforms
Résultat Matrix

Type public_oe property

public TowerType Type
Résultat TowerType

UnitTypeToBuild public_oe property

public UnitType UnitTypeToBuild
Résultat UnitType

XP public_oe property

public int XP
Résultat int

attackStrength public_oe property

public int attackStrength
Résultat int

destroyCost public_oe property

public int destroyCost
Résultat int

repairCost public_oe property

public int repairCost
Résultat int

tile public_oe property

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

towerEnumType public_oe static_oe property

public static Enum[],System towerEnumType
Résultat System.Enum[]

towerUpgradeEnumType public_oe static_oe property

public static Enum[],System towerUpgradeEnumType
Résultat System.Enum[]

towersToAttack public_oe property

public List towersToAttack
Résultat List

unitToAttack public_oe property

public Unit unitToAttack
Résultat Unit

upgradeCost public_oe property

public int upgradeCost
Résultat int