C# 클래스 CivilUnit, ES2015C

상속: Unit
파일 보기 프로젝트 열기: jgirald/ES2015C

공개 프로퍼티들

프로퍼티 타입 설명
building bool
buildingSound UnityEngine.AudioClip
collecting bool
collectionAmount float
farmingSound UnityEngine.AudioClip
harvesting bool
harvestingSpeed int
miningSound UnityEngine.AudioClip
waitingForBuildingLocationSelection bool
woodCuttingSound UnityEngine.AudioClip

보호된 프로퍼티들

프로퍼티 타입 설명
buildableBuildings RTSObjectType[]
constructionPoint Vector3
constructionRotation Quaternion
creationBuilding GameObject
creationBuildingConstruction GameObject
creationCollisionDetectorObject GameObject
currentProject Building,

공개 메소드들

메소드 설명
AssignBuildingProject ( Building, newProject ) : void
CreateBuildingIA ( GameObject building, Vector3 coords ) : void
CreateFinishedBuilding ( ) : void
CreateOnConstructionBuilding ( ) : void
CreateOnConstructionBuildingAI ( GameObject building, Vector3 coords ) : void
GetActions ( ) : Action[]
GetHarvestAmount ( ) : float

Get the current amount of resource that the unit has harvested.

GetHarvestType ( ) : ResourceType,

Get the current type of resource that the unit is harvesting.

IsBuilding ( ) : bool
IsHarvesting ( ) : bool

Check if the unit is currently harvesting.

PerformAction ( string actionToPerform ) : void
RotateBuilding ( ) : void
SetBuildingLocation ( ) : void

Sets the location of the building on the building location selector to the current position.

StartHarvest ( Resource, resource, string tag ) : void
StopBuildingLocationSelection ( ) : void
StopHarvest ( ) : void

보호된 메소드들

메소드 설명
Animating ( ) : void
Awake ( ) : void
OnGUI ( ) : void
OnMouseDown ( ) : void
Update ( ) : void
chargeSounds ( string objectName ) : void

비공개 메소드들

메소드 설명
Collect ( ) : void
CreateBuilding ( RTSObjectType objectType ) : void
Deposit ( ) : void
FindResource ( string tag ) : Resource,
StartBuildingLocationSelection ( GameObject creationBuildingTmp ) : void

Starts the building location selection sequence, where the user has to click on the map in order to select the place where the building should be built.

findTownCenter ( ) : TownCenterBuilding,

메소드 상세

Animating() 보호된 메소드

protected Animating ( ) : void
리턴 void

AssignBuildingProject() 공개 메소드

public AssignBuildingProject ( Building, newProject ) : void
newProject Building,
리턴 void

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

CreateBuildingIA() 공개 메소드

public CreateBuildingIA ( GameObject building, Vector3 coords ) : void
building GameObject
coords Vector3
리턴 void

CreateFinishedBuilding() 공개 메소드

public CreateFinishedBuilding ( ) : void
리턴 void

CreateOnConstructionBuilding() 공개 메소드

public CreateOnConstructionBuilding ( ) : void
리턴 void

CreateOnConstructionBuildingAI() 공개 메소드

public CreateOnConstructionBuildingAI ( GameObject building, Vector3 coords ) : void
building GameObject
coords Vector3
리턴 void

GetActions() 공개 메소드

public GetActions ( ) : Action[]
리턴 Action[]

GetHarvestAmount() 공개 메소드

Get the current amount of resource that the unit has harvested.
public GetHarvestAmount ( ) : float
리턴 float

GetHarvestType() 공개 메소드

Get the current type of resource that the unit is harvesting.
public GetHarvestType ( ) : ResourceType,
리턴 ResourceType,

IsBuilding() 공개 메소드

public IsBuilding ( ) : bool
리턴 bool

IsHarvesting() 공개 메소드

Check if the unit is currently harvesting.
public IsHarvesting ( ) : bool
리턴 bool

OnGUI() 보호된 메소드

protected OnGUI ( ) : void
리턴 void

OnMouseDown() 보호된 메소드

protected OnMouseDown ( ) : void
리턴 void

PerformAction() 공개 메소드

public PerformAction ( string actionToPerform ) : void
actionToPerform string
리턴 void

RotateBuilding() 공개 메소드

public RotateBuilding ( ) : void
리턴 void

SetBuildingLocation() 공개 메소드

Sets the location of the building on the building location selector to the current position.
public SetBuildingLocation ( ) : void
리턴 void

StartHarvest() 공개 메소드

public StartHarvest ( Resource, resource, string tag ) : void
resource Resource,
tag string
리턴 void

StopBuildingLocationSelection() 공개 메소드

public StopBuildingLocationSelection ( ) : void
리턴 void

StopHarvest() 공개 메소드

public StopHarvest ( ) : void
리턴 void

Update() 보호된 메소드

protected Update ( ) : void
리턴 void

chargeSounds() 보호된 메소드

protected chargeSounds ( string objectName ) : void
objectName string
리턴 void

프로퍼티 상세

buildableBuildings 보호되어 있는 프로퍼티

Buildings that can be created by this civil unit.
protected RTSObjectType[] buildableBuildings
리턴 RTSObjectType[]

building 공개적으로 프로퍼티

public bool building
리턴 bool

buildingSound 공개적으로 프로퍼티

public AudioClip,UnityEngine buildingSound
리턴 UnityEngine.AudioClip

collecting 공개적으로 프로퍼티

public bool collecting
리턴 bool

collectionAmount 공개적으로 프로퍼티

public float collectionAmount
리턴 float

constructionPoint 보호되어 있는 프로퍼티

protected Vector3 constructionPoint
리턴 Vector3

constructionRotation 보호되어 있는 프로퍼티

protected Quaternion constructionRotation
리턴 Quaternion

creationBuilding 보호되어 있는 프로퍼티

protected GameObject creationBuilding
리턴 GameObject

creationBuildingConstruction 보호되어 있는 프로퍼티

protected GameObject creationBuildingConstruction
리턴 GameObject

creationCollisionDetectorObject 보호되어 있는 프로퍼티

Object used to show the preview to the user and detect overlaps and unbuildable places.
protected GameObject creationCollisionDetectorObject
리턴 GameObject

currentProject 보호되어 있는 프로퍼티

protected Building, currentProject
리턴 Building,

farmingSound 공개적으로 프로퍼티

public AudioClip,UnityEngine farmingSound
리턴 UnityEngine.AudioClip

harvesting 공개적으로 프로퍼티

public bool harvesting
리턴 bool

harvestingSpeed 공개적으로 프로퍼티

public int harvestingSpeed
리턴 int

miningSound 공개적으로 프로퍼티

public AudioClip,UnityEngine miningSound
리턴 UnityEngine.AudioClip

waitingForBuildingLocationSelection 공개적으로 프로퍼티

true if we are in building location selection mode.
public bool waitingForBuildingLocationSelection
리턴 bool

woodCuttingSound 공개적으로 프로퍼티

public AudioClip,UnityEngine woodCuttingSound
리턴 UnityEngine.AudioClip