~ubuntu-branches/ubuntu/quantal/zaz/quantal

« back to all changes in this revision

Viewing changes to src/levelset.h

  • Committer: Package Import Robot
  • Author(s): Miriam Ruiz
  • Date: 2011-11-16 02:28:10 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20111116022810-a7maz8kv5zfaz7p1
Tags: upstream-1.0.0~dfsg1
ImportĀ upstreamĀ versionĀ 1.0.0~dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Zaz
 
3
 * Copyright (C) Remigiusz Dybka 2009 <remigiusz.dybka@gmail.com>
 
4
 *
 
5
 Zaz is free software: you can redistribute it and/or modify it
 
6
 under the terms of the GNU General Public License as published by the
 
7
 Free Software Foundation, either version 3 of the License, or
 
8
 (at your option) any later version.
 
9
 
 
10
 Zaz is distributed in the hope that it will be useful, but
 
11
 WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
13
 See the GNU General Public License for more details.
 
14
 
 
15
 You should have received a copy of the GNU General Public License along
 
16
 with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef __LEVELSET_H__
 
20
#define __LEVELSET_H__
 
21
 
 
22
#define LEVELSET_EXTENSION ".set"
 
23
 
 
24
#include <vector>
 
25
#include "level.h"
 
26
 
 
27
using namespace std;
 
28
 
 
29
class LevelSet
 
30
{
 
31
    string description;
 
32
    string thumbTexFilename;
 
33
    string filename;
 
34
    bool empty;
 
35
    vector<Level> levels;
 
36
 
 
37
    friend class MainMenu;
 
38
    friend class GameLoop;
 
39
public:
 
40
    LevelSet(string filename);
 
41
    LevelSet();
 
42
    ~LevelSet();
 
43
    static vector<string> getSetNames();
 
44
    const string getDesc() const
 
45
    {
 
46
        return description;
 
47
    };
 
48
    const bool getEmpty() const
 
49
    {
 
50
        return empty;
 
51
    };
 
52
};
 
53
 
 
54
extern LevelSet currentLevelSet;
 
55
#endif //__LEVELSET_H__