terrains separated
[k8-i-v-a-n.git] / src / game / olterrains / olterrain_sign.cpp
blob7c5a890e4206ce6ab537191f49ee87037282c6ea
1 #ifdef HEADER_PHASE
2 OLTERRAIN(sign, olterrain)
4 public:
5 virtual void Save(outputfile&) const;
6 virtual void Load(inputfile&);
7 virtual void SetText(cfestring& What) { Text = What; }
8 virtual festring GetText() const;
9 virtual void AddPostFix(festring&, int) const;
10 virtual void StepOn(character*);
11 protected:
12 festring Text;
16 #else
20 festring sign::GetText () const { return Text; }
24 void sign::AddPostFix (festring &String, int) const {
25 String << " with text \"" << Text << '\"';
30 void sign::StepOn (character *Stepper) {
31 if (Stepper->IsPlayer()) ADD_MESSAGE("There's a sign here saying: \"%s\"", Text.CStr());
36 void sign::Save (outputfile &SaveFile) const {
37 olterrain::Save(SaveFile);
38 SaveFile << Text;
43 void sign::Load (inputfile &SaveFile) {
44 olterrain::Load(SaveFile);
45 SaveFile >> Text;
47 #endif