summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-13 17:30:59 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-13 17:33:08 -0600
commitf46cfb91278b27f4943f5512778129fe985c678e (patch)
tree0be219d66e723bcca8de2d584d66bc65d040fb26 /src/map.h
parentbe85ca9d91ff867faf140328d0bcbb2062b58cdf (diff)
downloadmana-f46cfb91278b27f4943f5512778129fe985c678e.tar.gz
mana-f46cfb91278b27f4943f5512778129fe985c678e.tar.bz2
mana-f46cfb91278b27f4943f5512778129fe985c678e.tar.xz
mana-f46cfb91278b27f4943f5512778129fe985c678e.zip
Clean up Being and it's derivatives
Move stuff only needed for Players into Player (like slots and sprite limits). Move name handling into Being (no need for three copies of this code). Clean up terminology (including Map terminology). Remove hair-related variables.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map.h b/src/map.h
index 6baf7411..9c04f354 100644
--- a/src/map.h
+++ b/src/map.h
@@ -39,8 +39,8 @@ class Sprite;
class Tileset;
typedef std::vector<Tileset*> Tilesets;
-typedef std::list<Sprite*> Sprites;
-typedef Sprites::iterator SpriteIterator;
+typedef std::list<Sprite*> MapSprites;
+typedef MapSprites::iterator MapSprite;
typedef std::vector<MapLayer*> Layers;
/**
@@ -128,7 +128,7 @@ class MapLayer
int startX, int startY,
int endX, int endY,
int scrollX, int scrollY,
- const Sprites &sprites) const;
+ const MapSprites &sprites) const;
private:
int mX, mY;
@@ -266,12 +266,12 @@ class Map : public Properties
/**
* Adds a sprite to the map.
*/
- SpriteIterator addSprite(Sprite *sprite);
+ MapSprite addSprite(Sprite *sprite);
/**
* Removes a sprite from the map.
*/
- void removeSprite(SpriteIterator iterator);
+ void removeSprite(MapSprite iterator);
/**
* Adds a particle effect
@@ -317,7 +317,7 @@ class Map : public Properties
MetaTile *mMetaTiles;
Layers mLayers;
Tilesets mTilesets;
- Sprites mSprites;
+ MapSprites mSprites;
// Pathfinding members
int mOnClosedList, mOnOpenList;