C# 클래스 UHSampleGame.CoreObjects.Towers.Tower

상속: StaticTileObject
파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Attack ( GameTime gameTime ) : void
BuildUnit ( GameTime gameTime ) : void
GetNewAttackUnit ( Unit unit ) : void
UpdateScaleRotations ( ) : void

메소드 상세

Activate() 공개 메소드

public Activate ( int playerNum, int teamNum ) : void
playerNum int
teamNum int
리턴 void

AttackUnit() 공개 메소드

public AttackUnit ( ) : void
리턴 void

CanUpgrade() 공개 메소드

public CanUpgrade ( ) : bool
리턴 bool

DestroyCost() 공개 메소드

public DestroyCost ( ) : int
리턴 int

DrawHud() 공개 메소드

public DrawHud ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

InputDown() 공개 메소드

public InputDown ( ) : void
리턴 void

InputLeft() 공개 메소드

public InputLeft ( ) : void
리턴 void

InputRight() 공개 메소드

public InputRight ( ) : void
리턴 void

InputUp() 공개 메소드

public InputUp ( ) : void
리턴 void

IsActive() 공개 메소드

public IsActive ( ) : bool
리턴 bool

OnDied() 공개 메소드

public OnDied ( ) : void
리턴 void

RegisterAttackTower() 공개 메소드

public RegisterAttackTower ( Tower &tower ) : void
tower Tower
리턴 void

RegisterAttackUnit() 공개 메소드

public RegisterAttackUnit ( GameEventArgs args ) : void
args UHSampleGame.Events.GameEventArgs
리턴 void

RegisterAttackUnit() 공개 메소드

public RegisterAttackUnit ( Unit &unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
리턴 void

Repair() 공개 메소드

public Repair ( int money ) : int
money int
리턴 int

RepairCost() 공개 메소드

public RepairCost ( ) : int
리턴 int

RotateX() 공개 메소드

public RotateX ( float rotation ) : void
rotation float
리턴 void

RotateY() 공개 메소드

public RotateY ( float rotation ) : void
rotation float
리턴 void

RotateZ() 공개 메소드

public RotateZ ( float rotation ) : void
rotation float
리턴 void

SetScale() 공개 메소드

public SetScale ( float newScale ) : void
newScale float
리턴 void

Setup() 공개 메소드

public Setup ( Vector3 position ) : void
position Vector3
리턴 void

TakeDamage() 공개 메소드

public TakeDamage ( int damage ) : bool
damage int
리턴 bool

Tower() 공개 메소드

public Tower ( Model model, Tile tile ) : System
model Microsoft.Xna.Framework.Graphics.Model
tile UHSampleGame.TileSystem.Tile
리턴 System

Tower() 공개 메소드

public Tower ( TowerType type ) : System
type TowerType
리턴 System

UnregisterAttackTower() 공개 메소드

public UnregisterAttackTower ( Tower &tower ) : void
tower Tower
리턴 void

UnregisterAttackUnit() 공개 메소드

public UnregisterAttackUnit ( Unit &unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
리턴 void

Update() 공개 메소드

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

UpdateTransforms() 공개 메소드

public UpdateTransforms ( ) : void
리턴 void

Upgrade() 공개 메소드

public Upgrade ( int money ) : int
money int
리턴 int

UpgradeCost() 공개 메소드

public UpgradeCost ( ) : int
리턴 int

ValidateUnitInput() 공개 메소드

public ValidateUnitInput ( ) : void
리턴 void

XPUpgrade() 공개 메소드

public XPUpgrade ( ) : void
리턴 void

프로퍼티 상세

Cost 공개적으로 프로퍼티

public int Cost
리턴 int

Health 공개적으로 프로퍼티

public int Health
리턴 int

HealthCapacity 공개적으로 프로퍼티

public int HealthCapacity
리턴 int

ID 공개적으로 프로퍼티

public int ID
리턴 int

Level 공개적으로 프로퍼티

public int Level
리턴 int

LevelString 공개적으로 프로퍼티

public string LevelString
리턴 string

PlayerNum 공개적으로 프로퍼티

public int PlayerNum
리턴 int

Position 공개적으로 프로퍼티

public Vector3 Position
리턴 Vector3

Scale 공개적으로 프로퍼티

public float Scale
리턴 float

Status 공개적으로 프로퍼티

public TowerStatus Status
리턴 TowerStatus

TeamNum 공개적으로 프로퍼티

public int TeamNum
리턴 int

TotalInvestedCost 공개적으로 프로퍼티

public int TotalInvestedCost
리턴 int

Transforms 공개적으로 프로퍼티

public Matrix Transforms
리턴 Matrix

Type 공개적으로 프로퍼티

public TowerType Type
리턴 TowerType

UnitTypeToBuild 공개적으로 프로퍼티

public UnitType UnitTypeToBuild
리턴 UnitType

XP 공개적으로 프로퍼티

public int XP
리턴 int

attackStrength 공개적으로 프로퍼티

public int attackStrength
리턴 int

destroyCost 공개적으로 프로퍼티

public int destroyCost
리턴 int

repairCost 공개적으로 프로퍼티

public int repairCost
리턴 int

tile 공개적으로 프로퍼티

public Tile,UHSampleGame.TileSystem tile
리턴 UHSampleGame.TileSystem.Tile

towerEnumType 공개적으로 정적으로 프로퍼티

public static Enum[],System towerEnumType
리턴 System.Enum[]

towerUpgradeEnumType 공개적으로 정적으로 프로퍼티

public static Enum[],System towerUpgradeEnumType
리턴 System.Enum[]

towersToAttack 공개적으로 프로퍼티

public List towersToAttack
리턴 List

unitToAttack 공개적으로 프로퍼티

public Unit unitToAttack
리턴 Unit

upgradeCost 공개적으로 프로퍼티

public int upgradeCost
리턴 int