moved almost all hardcoded constants to "define.dat"
[k8-i-v-a-n.git] / src / game / bodyparts / head_playerkindhead.cpp
blobd04f58e0fb3000b51729a0ad312aeb3d432028df
1 #ifdef HEADER_PHASE
2 ITEM(playerkindhead, head)
4 public:
5 playerkindhead() { }
6 playerkindhead(const playerkindhead& Head) : mybase(Head) { }
7 virtual void Save(outputfile&) const;
8 virtual void Load(inputfile&);
9 virtual truth UpdateArmorPictures();
10 virtual void DrawArmor(blitdata&) const;
11 virtual truth ShowFluids() const { return true; }
12 virtual truth IsAnimated() const { return true; }
13 protected:
14 graphicdata HelmetGraphicData;
18 #else
22 truth playerkindhead::UpdateArmorPictures()
24 UpdateHeadArmorPictures(HelmetGraphicData);
25 return true;
30 void playerkindhead::DrawArmor(blitdata& BlitData) const
32 DrawEquipment(HelmetGraphicData, BlitData);
34 if(GetHelmet())
35 GetHelmet()->DrawFluidGearPictures(BlitData);
40 void playerkindhead::Save(outputfile& SaveFile) const
42 head::Save(SaveFile);
43 SaveFile << HelmetGraphicData;
48 void playerkindhead::Load(inputfile& SaveFile)
50 head::Load(SaveFile);
51 SaveFile >> HelmetGraphicData;
53 #endif