nonhumans separation
[k8-i-v-a-n.git] / src / game / humans / humanoid_axethrowerdwarf.cpp
blob23d065f8436d7dc25173fc2e5484b1737d3912e2
1 #ifdef HEADER_PHASE
2 CHARACTER(axethrowerdwarf, humanoid)
4 public:
5 virtual void GetAICommand();
6 virtual void CreateInitialEquipment(int);
7 protected:
8 virtual int GetTorsoMainColor() const;
9 virtual int GetGauntletColor() const;
10 virtual int GetLegMainColor() const;
11 virtual v2 GetDrawDisplacement(int) const;
12 virtual int GetWSkillHits() const { return 10000; }
13 virtual truth IsElite() const { return false; }
17 #else
21 void axethrowerdwarf::CreateInitialEquipment (int SpecialFlags) {
22 SetRightWielded(meleeweapon::Spawn(AXE, SpecialFlags));
23 SetLeftWielded(meleeweapon::Spawn(AXE, SpecialFlags));
24 for (int k = 0; k < 6; ++k) GetStack()->AddItem(meleeweapon::Spawn(AXE));
25 GetStack()->AddItem(lantern::Spawn());
26 GetCWeaponSkill(AXES)->AddHit(GetWSkillHits());
27 GetCurrentRightSWeaponSkill()->AddHit(GetWSkillHits());
32 void axethrowerdwarf::GetAICommand () {
33 if (CheckThrowItemOpportunity()) return;
34 character::GetAICommand();
39 v2 axethrowerdwarf::GetDrawDisplacement (int j) const {
40 static v2 DrawDisplacement[] = { v2(0, 0), v2(0, 1), v2(0, -1), v2(0, -1), v2(0, -1), v2(0, 0), v2(0, 0) };
41 return DrawDisplacement[j];
46 col16 axethrowerdwarf::GetTorsoMainColor () const {
47 return GetMasterGod()->GetColor();
52 col16 axethrowerdwarf::GetGauntletColor () const {
53 return GetMasterGod()->GetColor();
58 col16 axethrowerdwarf::GetLegMainColor () const {
59 return GetMasterGod()->GetColor();
61 #endif