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

« back to all changes in this revision

Viewing changes to src/portlist.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:
36
36
        //! The xml tag of this object in a saved-game file.
37
37
        static std::string d_tag; 
38
38
 
 
39
        // Methods that operate on the class data but do not modify the class.
 
40
 
 
41
        //! Saves the list of Port objects to the opened saved-game file.
 
42
        bool save(XML_Helper* helper) const;
 
43
 
 
44
 
 
45
        // Static Methods
 
46
 
39
47
        //! Return the singleton instance.  Create a new one if needed.
40
48
        static Portlist* getInstance();
41
49
 
45
53
        //! Explicitly delete the singleton instance.
46
54
        static void deleteInstance();
47
55
 
48
 
        //! Saves the list of Port objects to the opened saved-game file.
49
 
        bool save(XML_Helper* helper) const;
50
 
 
51
56
    protected:
 
57
 
52
58
        //! Default constructor.
53
59
        Portlist();
54
60
 
64
70
        //! Callback for loading Port objects into the list of ports.
65
71
        bool load(std::string tag, XML_Helper* helper);
66
72
 
 
73
        // DATA
 
74
 
67
75
        //! A static pointer for the singleton instance.
68
76
        static Portlist* s_instance;
69
77
};