2 MATERIAL(powder
, liquid
)
5 powder() : Wetness(0) { }
6 virtual truth
IsPowder() const { return true; }
7 virtual truth
IsExplosive() const;
8 virtual void AddWetness(sLong What
) { Wetness
+= What
; }
9 virtual void Be(feuLong
);
10 virtual truth
HasBe() const { return true; }
11 virtual void Save(outputfile
&) const;
12 virtual void Load(inputfile
&);
22 truth
powder::IsExplosive() const { return !Wetness
&& material::IsExplosive(); }
26 void powder::Be(feuLong
)
34 void powder::Save(outputfile
& SaveFile
) const
36 material::Save(SaveFile
);
42 void powder::Load(inputfile
& SaveFile
)
44 material::Load(SaveFile
);