C# 클래스 spaceconquest.Unit

상속: GameObject
파일 보기 프로젝트 열기: cclay/spaceconquest 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
affiliation Player
buildCost int
buildTime int
health int
hitthisturn bool
maxHealth int

공개 메소드들

메소드 설명
Unit ( ) : System
Unit ( Player p ) : System
getAffiliation ( ) : Player
getCost ( ) : int
getHealth ( ) : int
getMaxHealth ( ) : int
getTime ( ) : int
hit ( int damage ) : void
kill ( ) : void
setAffiliation ( Player p ) : void
setHealth ( int h ) : void
setMaxHealth ( int mh ) : void
upkeep ( ) : void

메소드 상세

Unit() 공개 메소드

public Unit ( ) : System
리턴 System

Unit() 공개 메소드

public Unit ( Player p ) : System
p Player
리턴 System

getAffiliation() 공개 메소드

public getAffiliation ( ) : Player
리턴 Player

getCost() 공개 메소드

public getCost ( ) : int
리턴 int

getHealth() 공개 메소드

public getHealth ( ) : int
리턴 int

getMaxHealth() 공개 메소드

public getMaxHealth ( ) : int
리턴 int

getTime() 공개 메소드

public getTime ( ) : int
리턴 int

hit() 공개 메소드

public hit ( int damage ) : void
damage int
리턴 void

kill() 공개 추상적인 메소드

public abstract kill ( ) : void
리턴 void

setAffiliation() 공개 메소드

public setAffiliation ( Player p ) : void
p Player
리턴 void

setHealth() 공개 메소드

public setHealth ( int h ) : void
h int
리턴 void

setMaxHealth() 공개 메소드

public setMaxHealth ( int mh ) : void
mh int
리턴 void

upkeep() 공개 메소드

public upkeep ( ) : void
리턴 void

프로퍼티 상세

affiliation 보호되어 있는 프로퍼티

protected Player,spaceconquest affiliation
리턴 Player

buildCost 보호되어 있는 프로퍼티

protected int buildCost
리턴 int

buildTime 보호되어 있는 프로퍼티

protected int buildTime
리턴 int

health 보호되어 있는 프로퍼티

protected int health
리턴 int

hitthisturn 보호되어 있는 프로퍼티

protected bool hitthisturn
리턴 bool

maxHealth 보호되어 있는 프로퍼티

protected int maxHealth
리턴 int