~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/tilestyleset.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
{
40
40
    public:
41
41
 
 
42
        //! The xml tag of this object in a tileset configuration file.
 
43
        static std::string d_tag; 
 
44
 
42
45
        //! The default constructor.
43
46
        TileStyleSet();
44
47
 
64
67
        //! Set the name of this tilestyleset.
65
68
        void setName(std::string name) {d_name = name;}
66
69
 
67
 
        /**
68
 
         * Load all of the TileStyle images for this TileStyleSet.
69
 
         *
70
 
         * @param tileset    This TileStyleSet belongs to this Tileset.
71
 
         *                   This value is the name of tileset directory.
72
 
         * @param tilesize   The width and height of each cell in the
73
 
         *                   image identified to by TileStyleSet::d_name.
74
 
         */
75
 
        void instantiatePixmaps(std::string tileset, Uint32 tilesize);
76
 
 
77
70
        //! Save a TileStyleSet to an opened tile configuration file.
78
71
        /**
79
72
         * @param  The opened XML tile configuration file.
81
74
        bool save(XML_Helper *helper);
82
75
 
83
76
        //! Return the subdirectory of this Tilestyleset.
84
 
        std::string getSubDir() const {return d_dir;}
 
77
        std::string getSubDir() const {return d_dir;};
85
78
 
86
79
        //! Set the subdirectory of where this Tilestyleset resides on disk.
87
 
        void setSubDir(std::string dir) {d_dir = dir;}
 
80
        void setSubDir(std::string dir) {d_dir = dir;};
88
81
 
 
82
        void getUniqueTileStyleTypes(std::list<TileStyle::Type> &types);
 
83
        bool validate();
89
84
    private:
90
85
 
91
86
        //! The name of the tilestyleset.