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
15 #include "ivancommon.h"
26 class wsquare
: public square
{
27 friend class worldmap
;
29 wsquare (worldmap
*, v2
);
32 virtual void Save (outputfile
&) const;
33 virtual void Load (inputfile
&);
34 void Draw (blitdata
&);
35 void SetGWTerrain (gwterrain
*);
36 gwterrain
*GetGWTerrain () const { return GWTerrain
; }
37 owterrain
*GetOWTerrain () const { return OWTerrain
; }
38 //void ChangeWTerrain (gwterrain *, owterrain *);
39 worldmap
*GetWorldMap () const { return static_cast<worldmap
*>(AreaUnder
); }
40 void SetWorldMapUnder (worldmap
*What
) { AreaUnder
= What
; }
41 void UpdateMemorizedDescription (truth
= false);
42 virtual gterrain
*GetGTerrain () const;
43 virtual oterrain
*GetOTerrain () const;
44 void ChangeGWTerrain (gwterrain
*);
45 void ChangeOWTerrain (owterrain
*);
46 void SetWTerrain (gwterrain
*, owterrain
*);
48 void CalculateLuminance ();
49 wsquare
* GetNeighbourWSquare (int I
) const { return static_cast<worldmap
*>(AreaUnder
)->GetNeighbourWSquare(Pos
, I
); }
50 int GetWalkability () const;
51 virtual int GetSquareWalkability () const { return GetWalkability(); }
52 virtual truth
CanBeSeenByPlayer (truth
= false) const;
53 virtual truth
CanBeSeenFrom (v2
, sLong
, truth
= false) const;
56 void SetOWTerrain (owterrain
*);