3 * Iter Vehemens ad Necem (IVAN)
4 * Copyright (C) Timo Kiviluoto
5 * Released under the GNU General
8 * See LICENSING which should be included
9 * along with this file for more details
19 class rain
: public entity
22 /* Come To The Dark Side */
26 rain() : entity(HAS_BE
), Next(0), Drop(0), Drops(0), OwnLiquid(0) { }
27 rain(liquid
*, lsquare
*, v2
, int, truth
);
31 void Save(outputfile
&) const;
32 void Load(inputfile
&);
33 void Draw(blitdata
&) const;
34 truth
HasOwnLiquid() const { return OwnLiquid
; }
35 void RandomizeDropPos(int) const;
36 liquid
* GetLiquid() const { return Liquid
; }
37 virtual square
* GetSquareUnderEntity(int = 0) const { return LSquareUnder
; }
38 square
* GetSquareUnder() const { return LSquareUnder
; }
39 void SetLSquareUnder(lsquare
* What
) { LSquareUnder
= What
; }
40 lsquare
* GetLSquareUnder() const { return LSquareUnder
; }
41 virtual truth
IsOnGround() const { return true; }
42 int GetTeam() const { return Team
; }
51 lsquare
* LSquareUnder
;
54 mutable int Drops
: 8;
60 outputfile
& operator<<(outputfile
&, const rain
*);
61 inputfile
& operator>>(inputfile
&, rain
*&);