finished adding content from CLIVAN; not tested yet
[k8-i-v-a-n.git] / src / game / humans / humanoid_forestman.cpp
blob2b11eb65c8a88edd6dbd15b09600a1fad1869f66
1 #ifdef HEADER_PHASE
2 CHARACTER(forestman, humanoid)
4 public:
5 virtual character *GetLeader() const;
7 protected:
8 virtual void GetAICommand ();
9 };
12 #else
15 character *forestman::GetLeader () const {
16 character *Guide = game::GetTeam(FORESTMAN_TEAM)->GetLeader();
17 return Guide && Guide->GetRelation(this) != HOSTILE ? Guide : GetTeam()->GetLeader();
21 void forestman::GetAICommand () {
22 humanoid::GetAICommand();
26 #endif