Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (52 sloc) 2.57 KB
* This file is part of Wizznic. *
* Copyright 2009-2012 Jimmy Christensen <> *
* Wizznic 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. *
* *
* Wizznic is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with Wizznic. If not, see <>. *
#include "list.h"
#include "stats.h"
struct levelInfo_s
char* file; //Level filename
char* imgFile; //Preview filename
char* author; //Author name
char* levelName; //Level name
char* tileBase; //tile base name
char* explBase; //Base name for explotions
char* wallBase; //dir with wall.png and (optional) walls.png
char* bgFile; //backgroundFile
char* musicFile; //Music file (set by pack.c)
char* soundDir; //Directory containing soundeffects
char* fontName; //Font
char* cursorFile;//Cursor
char* startImg; //img to show before game starts
char* stopImg; //img to show after level completed.
listItem* teleList; //Initiated by mkLevelInfo
listItem* switchList; //Initiated by mkLevelInfo
hsEntry_t* hsStats; ///hsEntry level stats. (TODO: Should this be freed by freeLevelInfo? Is it?)
int time; //Time in seconds to complete
int brick_die_ticks; //Ticks the bricks is to die
int brickDieParticles; //Spawn particles when bricks die
typedef struct levelInfo_s levelInfo_t;
void makeLevelList(listItem** list, const char* dir);
void makeUserLevelList();
void addUserLevel(const char* fn);
levelInfo_t* mkLevelInfo(const char* fileName);
void freeLevelInfo(levelInfo_t** p); //given a pointer to the pointer, so it can dereference it properly.
char* userLevelFile(int num);
int getNumUserLevels();
Jump to Line
Something went wrong with that request. Please try again.