21 #ifndef edmapcomponentH
22 #define edmapcomponentH
47 virtual bool remove (
const MapCoordinate& mc )
const {
return false; };
55 static int currentPlayer;
56 static void setPlayer(
int player );
57 static bool initialized;
70 void displayClip( PG_Widget* parent, SDL_Surface * surface,
const PG_Rect & src,
const PG_Rect & dst )
const;
109 static Surface clippingSurface;
124 virtual int getID()
const {
return bld->
id; };
virtual void display(Surface &s, const SPoint &pos) const
sigc::signal< void > filtersChangedSignal
void vPlace(const MapCoordinate &mc) const
just a wrapper so we have a function return void
virtual bool supportMultiFieldPlacement() const =0
virtual int place(const MapCoordinate &mc) const
Weather * weather[cwettertypennum]
virtual int place(const MapCoordinate &mc) const =0
TerrainItem(const TerrainType *object)
const MapItemType * mapItem
virtual MapComponent * clone() const
virtual Surface & getClippingSurface() const =0
virtual int displayHeight() const
void display(Surface &surface, const SPoint &pos) const
displays the objecttype at x/y on the screen
MapComponent(const MapItemType *item)
virtual LuaBrush * clone() const
virtual MapComponent * clone() const
void displayClip(PG_Widget *parent, SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) const
LuaBrush(const ASCString &filename)
Surface & getClippingSurface() const
virtual int getID() const
The ASCString class provides an abstract way to manipulate strings.
virtual int place(const MapCoordinate &mc) const
int place(const MapCoordinate &mc) const
virtual int place(const MapCoordinate &mc) const
virtual void display(Surface &s, const SPoint &pos) const
The class describing properties that are common to all vehicles of a certain kind.
virtual bool supportMultiFieldPlacement() const
A MapComponent represents any kind of item that can be placed on the map by the user.
The class describing properties that are common to all buildings of a certain kind.
virtual ASCString getName() const
MineItem(const MineType *object)
The base class for everything that can be placed on a map field.
virtual MapComponent * clone() const
virtual void display(Surface &s, const SPoint &pos) const
An object that can be placed on fields. Roads, pipelines and ditches are examples of objects...
Coordinate on the twodimensional map.
void paint(Surface &surface, const SPoint &pos) const
The interface for the buildingtype class.
virtual int displayHeight() const =0
virtual ASCString getName() const =0
virtual void display(Surface &s, const SPoint &pos) const
void paint(Surface &s, SPoint pos)
displays the image on the screen coordinates x1/y1
virtual bool supportMultiFieldPlacement() const
Surface & getClippingSurface() const
virtual int displayWidth() const
virtual int displayWidth() const =0
virtual int displayHeight() const
static Surface clippingSurface
static const int fontHeight
BuildingItem(const BuildingType *building)
Mine and Objects which can be placed on a map field.
ASCString getName() const
virtual void display(Surface &s, const SPoint &pos) const =0
virtual int place(const MapCoordinate &mc) const
virtual ASCString getName() const
VehicleItem(const VehicleType *vehicle)
ObjectItem(const ObjectType *object)
virtual ASCString getName() const =0
virtual void display(Surface &s, const SPoint &pos) const
const MapItemType * getItemType() const
virtual int place(const MapCoordinate &mc) const
bool supportMultiFieldPlacement() const
ASCString getName() const
virtual int displayWidth() const
virtual int getID() const
ASCString getName() const
virtual MapComponent * clone() const
virtual MapComponent * clone() const
The map. THE central structure of ASC, which holds everything not globally available together...
virtual Placeable * clone() const =0