~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/map.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
class Animation;
38
38
class AmbientLayer;
39
39
class Image;
 
40
class MapHeights;
 
41
class MapItem;
40
42
class MapLayer;
 
43
class ObjectsLayer;
41
44
class Particle;
42
45
class Resource;
43
46
class SimpleAnimation;
 
47
class SpecialLayer;
44
48
class Tileset;
45
 
class SpecialLayer;
46
 
class MapItem;
47
 
class ObjectsLayer;
48
49
class WalkLayer;
49
50
 
50
51
typedef std::vector<Tileset*> Tilesets;
405
406
        bool isCustom() const A_WARN_UNUSED
406
407
        { return mCustom; }
407
408
 
408
 
        std::map<int, TileAnimation*> &getTileAnimations() A_WARN_UNUSED
 
409
        const std::map<int, TileAnimation*> &getTileAnimations()
 
410
                                            const A_WARN_UNUSED
409
411
        { return mTileAnimations; }
410
412
 
411
413
        void setAtlas(Resource *const atlas)
420
422
        void setWalkLayer(WalkLayer *const layer)
421
423
        { mWalkLayer = layer; }
422
424
 
 
425
        void addHeights(MapHeights *const heights);
 
426
 
 
427
        uint8_t getHeightOffset(const int x, const int y) const;
 
428
 
423
429
    protected:
424
430
        friend class Actor;
425
431
        friend class Minimap;
535
541
        int mDrawY;
536
542
        int mDrawScrollX;
537
543
        int mDrawScrollY;
 
544
        Resource *mAtlas;
 
545
        MapHeights *mHeights;
538
546
        bool mRedrawMap;
539
547
        bool mBeingOpacity;
540
548
        bool mCustom;
541
 
        Resource *mAtlas;
542
549
};
543
550
 
544
551
#endif  // MAP_H