Logo Search packages:      
Sourcecode: zaz version File versions  Download package

level.h

/*
 * Zaz
 * Copyright (C) Remigiusz Dybka 2009 <remigiusz.dybka@gmail.com>
 *
 Zaz is free software: you can redistribute it and/or modify it
 under the terms of the GNU General Public License as published by the
 Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 Zaz is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 See the GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along
 with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __LEVEL_H__
#define __LEVEL_H__

#include <fstream>
#include "bezier.h"
#include "common.h"

using namespace std;

struct Level
{
    string savePhilename;
    //      int npaths;
    vector<Bezier> paths;
    bool loop;
    string name;
    bool invert;
    double startFeedRate;
    double endFeedRate;
    int ballsToDraw;
    int ballsFromStart;
    int colors;
    int time;

    GLuint backgroundTex;

    Level(Bezier paths[] = NULL, int npaths = 3, bool loop = false, bool invert = false, string name = "New level");
    Level(const char *philename, bool skipGfx = false);

    ~Level();
    void Save(const char *philename);
    void Save();
    void LoadData(string philename);
    void NewLevel();
};

/*
_("ZazTrlasldk")
*/

#endif //__LEVEL_H__

Generated by  Doxygen 1.6.0   Back to index