~ubuntu-branches/ubuntu/maverick/lordsawar/maverick

« back to all changes in this revision

Viewing changes to src/maptile.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2010-04-10 09:29:33 UTC
  • mfrom: (1.1.9 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100410092933-23uq4dxig30kmtcw
Tags: 0.1.8-1
* New upstream release.
* Add misc:Depends for -data package.
* Bump Standards Version to 3.8.4. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Copyright (C) 2003 Michael Bartl
2
2
// Copyright (C) 2003, 2004, 2005, 2006 Ulf Lorenz
3
3
// Copyright (C) 2005 Andrea Paternesi
4
 
// Copyright (C) 2006, 2007, 2008, 2009 Ben Asselstine
 
4
// Copyright (C) 2006, 2007, 2008, 2009, 2010 Ben Asselstine
5
5
//
6
6
//  This program is free software; you can redistribute it and/or modify
7
7
//  it under the terms of the GNU General Public License as published by
25
25
#include "SmallTile.h"
26
26
#include "tileset.h"
27
27
#include "Item.h"
28
 
class MapBackpack;
 
28
#include "MapBackpack.h"
 
29
class StackTile;
29
30
 
30
31
//! A single tile on the game map.
31
32
/** 
142
143
 
143
144
        //! Get the list of Item objects on this maptile.
144
145
        MapBackpack *getBackpack() const {return d_backpack;};
 
146
 
 
147
        //! Set the backpack for this tile.
 
148
        void setBackpack(MapBackpack *bag) {if (d_backpack) delete d_backpack; d_backpack = bag;};
 
149
 
 
150
        //! Get the list of Stack objects on this maptile.
 
151
        StackTile *getStacks() const {return d_stacktile;};
145
152
        
146
153
        //! Whether or not this map tile considered to be "open terrain".
147
154
        /**
169
176
         */
170
177
        bool isCityTerrain();
171
178
 
 
179
        //! Whether or not this map tile is considered to be a road.
 
180
        /**
 
181
         * includes roads and bridges.
 
182
         */
 
183
        bool isRoadTerrain();
 
184
 
172
185
        //! Prints some debug information about this maptile.
173
186
        void printDebugInfo() const;
174
187
                
197
210
        Building d_building;
198
211
        //! The list of pointers to items on this maptile.
199
212
        MapBackpack *d_backpack;
 
213
        //! The list of pointers to stacks on this maptile.
 
214
        StackTile *d_stacktile;
200
215
};
201
216
 
202
217
#endif // MAPTILE_H