// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "background.h"
+#include "background.h"
#include "globals.h"
#include "camera.h"
#include "screen/drawing_context.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __BACKGROUND_H__
-#define __BACKGROUND_H__
+
+#ifndef SUPERTUX_BACKGROUND_H
+#define SUPERTUX_BACKGROUND_H
#include "screen/texture.h"
#include "screen/drawing_context.h"
Color gradient_top, gradient_bottom;
};
-#endif
+#endif /*SUPERTUX_BACKGROUND_H*/
// 02111-1307, USA.
#include <iostream>
-#include <math.h>
+#include <cmath>
#include "globals.h"
#include "defines.h"
#define SUPERTUX_BADGUY_H
#include "SDL.h"
+
#include "timer.h"
#include "screen/texture.h"
#include "physic.h"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
-#include <string.h>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
+
#include "setup.h"
#include "screen/screen.h"
#include "screen/drawing_context.h"
#define SUPERTUX_BUTTON_H
#include <vector>
+
#include "screen/texture.h"
#include "timer.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "camera.h"
#include <stdexcept>
#include <sstream>
-#include <math.h>
+#include <cmath>
+
+#include "camera.h"
#include "lispwriter.h"
#include "player.h"
#include "tilemap.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __VIEWPORT_H__
-#define __VIEWPORT_H__
+
+#ifndef SUPERTUX_CAMERA_H
+#define SUPERTUX_CAMERA_H
#include <vector>
+#include <cassert>
+
#include "vector.h"
#include "game_object.h"
#include "serializable.h"
-#include <cassert>
class LispReader;
class Sector;
Vector current_dir;
};
-#endif
+#endif /*SUPERTUX_CAMERA_H*/
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <stdlib.h>
+#include <cstdlib>
#include <string>
+
#include "configfile.h"
#include "setup.h"
#include "globals.h"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
-#if !defined( SUPERTUX_DEFINES_H )
-
+#ifndef SUPERTUX_DEFINES_H
#define SUPERTUX_DEFINES_H
+
/* Version: */
#ifndef VERSION
#define DEBUG_MSG( msg ) {}
#endif
-#endif
+#endif /*SUPERTUX_DEFINES_H*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "door.h"
+#include "door.h"
#include "lispreader.h"
#include "lispwriter.h"
#include "gameloop.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __DOOR_H__
-#define __DOOR_H__
+
+#ifndef SUPERTUX_DOOR_H
+#define SUPERTUX_DOOR_H
#include <string>
+
#include "interactive_object.h"
#include "serializable.h"
std::string target_spawnpoint;
};
-#endif
+#endif /*SUPERTUX_DOOR_H*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "game_object.h"
GameObject::GameObject()
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __GAMEOBJECT_HPP__
-#define __GAMEOBJECT_HPP__
+
+#ifndef SUPERTUX_GAMEOBJECT_H
+#define SUPERTUX_GAMEOBJECT_H
#include <string>
bool wants_to_die;
};
-#endif
+#endif /*SUPERTUX_GAMEOBJECT_H*/
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <string.h>
-#include <errno.h>
+#include <cassert>
+#include <cstdio>
+#include <cstdlib>
+#include <cmath>
+#include <cstring>
+#include <cerrno>
#include <unistd.h>
-#include <math.h>
-#include <time.h>
-#include <SDL.h>
+#include <ctime>
+
+#include "SDL.h"
#ifndef WIN32
#include <sys/types.h>
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
+
#include <algorithm>
#include <iostream>
-#include <math.h>
+#include <cmath>
+
#include "tile.h"
#include "gameloop.h"
#include "gameobjs.h"
#define SUPERTUX_GLOBALS_H
#include <string>
-#include <SDL.h>
+
+#include "SDL.h"
+
#include "screen/font.h"
#include "menu.h"
#include "mousecursor.h"
/* Open the highscore file: */
-#include <string.h>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
#include "globals.h"
#include "high_scores.h"
#ifndef SUPERTUX_HIGH_SCORES_H
#define SUPERTUX_HIGH_SCORES_H
-#include <stdio.h>
+#include <cstdio>
extern int hs_score;
extern std::string hs_name; /* highscores global variables*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "interactive_object.h"
InteractiveObject::InteractiveObject()
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __INTERACTIVE_OBJECT_H__
-#define __INTERACTIVE_OBJECT_H__
+
+#ifndef SUPERTUX_INTERACTIVE_OBJECT_H
+#define SUPERTUX_INTERACTIVE_OBJECT_H
#include "game_object.h"
#include "type.h"
base_type area;
};
-#endif
+#endif /*SUPERTUX_INTERACTIVE_OBJECT_H*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "intro.h"
#include "globals.h"
#include "defines.h"
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#ifndef SUPERTUX_INTRO_H
+#define SUPERTUX_INTRO_H
+
void draw_intro();
+#endif /*SUPERTUX_INTRO_H*/
+
/* Local Variables: */
/* mode:c++ */
/* End: */
// 02111-1307, USA.
#include <map>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <iostream>
#include <fstream>
#include <stdexcept>
+
#include "globals.h"
#include "setup.h"
#include "camera.h"
#include <map>
#include <string>
+
#include "screen/texture.h"
#include "lispreader.h"
#include "musicref.h"
#include <map>
#include <typeinfo>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-#include <errno.h>
-#include <unistd.h>
-#include <SDL.h>
-#include <SDL_image.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <cmath>
+#include <cerrno>
#include <algorithm>
#include <iostream>
+#include <unistd.h>
-#include "leveleditor.h"
+#include "SDL.h"
+#include "SDL_image.h"
+#include "leveleditor.h"
#include "screen/screen.h"
#include "defines.h"
#include "globals.h"
#include <iostream>
#include <string>
-#include <ctype.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cctype>
+#include <cstdlib>
+#include <cstring>
+
#include "setup.h"
#include "lispreader.h"
* Boston, MA 02111-1307, USA.
*/
-#ifndef __LISPREADER_H__
-#define __LISPREADER_H__
+#ifndef SUPERTUX_LISPREADER_H
+#define SUPERTUX_LISPREADER_H
-#include <stdio.h>
-#include <zlib.h>
+#include <cstdio>
#include <string>
#include <vector>
#include <exception>
+
+#include <zlib.h>
+
#include "exceptions.h"
#define LISP_STREAM_FILE 1
lisp_object_t* get_lisp();
};
-#endif
+#endif /*SUPERTUX_LISPREADER_H*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "lispwriter.h"
+
#include <iostream>
+#include "lispwriter.h"
+
LispWriter::LispWriter(std::ostream& newout)
: out(newout), indent_depth(0)
{
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __LISPWRITER_H__
-#define __LISPWRITER_H__
+
+#ifndef SUPERTUX_LISPWRITER_H
+#define SUPERTUX_LISPWRITER_H
#include <iostream>
#include <vector>
#include <iostream>
#include <sstream>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <string>
-#include <assert.h>
+#include <cassert>
#include "defines.h"
#include "globals.h"
#ifndef SUPERTUX_MENU_H
#define SUPERTUX_MENU_H
-#include <SDL.h>
#include <vector>
+
+#include "SDL.h"
+
#include "screen/texture.h"
#include "timer.h"
#include "type.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "screen/drawing_context.h"
#include "mousecursor.h"
#define SUPERTUX_MOUSECURSOR_H
#include <string>
+
#include "timer.h"
#include "screen/texture.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "moving_object.h"
MovingObject::MovingObject()
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __MOVING_OBJECT_H__
-#define __MOVING_OBJECT_H__
+
+#ifndef SUPERTUX_MOVING_OBJECT_H
+#define SUPERTUX_MOVING_OBJECT_H
#include "type.h"
#include "game_object.h"
#endif
};
-#endif
+#endif /*SUPERTUX_MOVING_OBJECT_H*/
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "musicref.h"
MusicRef::MusicRef()
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef HEADER_MUSIC_RESOURCE_H
-#define HEADER_MUSIC_RESOURCE_H
+
+#ifndef SUPERTUX_MUSICREF_H
+#define SUPERTUX_MUSICREF_H
#include "sound_manager.h"
SoundManager::MusicResource* music;
};
-#endif
+#endif /*SUPERTUX_MUSICREF_H*/
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "particlesystem.h"
#include <iostream>
-#include <math.h>
+#include <cmath>
+
+#include "particlesystem.h"
#include "globals.h"
#include "lispreader.h"
#include "lispwriter.h"
#define SUPERTUX_PARTICLESYSTEM_H
#include <vector>
+
#include "screen/texture.h"
#include "game_object.h"
#include "serializable.h"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
-#include <stdio.h>
+#include <cstdio>
#include "scene.h"
#include "defines.h"
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <math.h>
+#include <cmath>
#include <iostream>
#include <cassert>
+
#include "gameloop.h"
#include "globals.h"
#include "player.h"
#ifndef SUPERTUX_PLAYER_H
#define SUPERTUX_PLAYER_H
-#include <SDL.h>
+#include "SDL.h"
+
#include "bitmask.h"
#include "type.h"
#include "timer.h"
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <stdlib.h>
+#include <cstdlib>
+
#include "scene.h"
#include "defines.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "sector.h"
#include <memory>
#include <stdexcept>
#include <iostream>
#include <fstream>
#include <stdexcept>
-#include "lispreader.h"
+#include "sector.h"
+#include "lispreader.h"
#include "badguy.h"
#include "special.h"
#include "gameobjs.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __SECTOR_H__
-#define __SECTOR_H__
+
+#ifndef SUPERTUX_SECTOR_H
+#define SUPERTUX_SECTOR_H
#include <string>
#include <vector>
+
#include "vector.h"
#include "badguy.h"
#include "special.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __SERIALIZABLE_H__
-#define __SERIALIZABLE_H__
+
+#ifndef SUPERTUX_SERIALIZABLE_H
+#define SUPERTUX_SERIALIZABLE_H
class LispWriter;
virtual void write(LispWriter& writer) = 0;
};
-#endif
+#endif /*SUPERTUX_SERIALIZABLE_H*/
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <assert.h>
-#include <stdio.h>
+#include <cassert>
+#include <cstdio>
#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <cerrno>
#include <unistd.h>
-#include <SDL.h>
-#include <SDL_image.h>
+
+#include "SDL.h"
+#include "SDL_image.h"
#ifndef NOOPENGL
-#include <SDL_opengl.h>
+#include "SDL_opengl.h"
#endif
#include <sys/stat.h>
#ifndef WIN32
#include <libgen.h>
#endif
-#include <ctype.h>
+
+#include <cctype>
#include "defines.h"
#include "globals.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include "defines.h"
#include "globals.h"
#include "sound.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "sound_manager.h"
-#include <math.h>
-#include <assert.h>
+#include <cmath>
+#include <cassert>
+
+#include "sound_manager.h"
#include "musicref.h"
#include "setup.h"
#include "sector.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __SOUND_MANAGER_H__
-#define __SOUND_MANAGER_H__
-#include "vector.h"
-#include <SDL_mixer.h>
+#ifndef SUPERTUX_SOUND_MANAGER_H
+#define SUPERTUX_SOUND_MANAGER_H
+
#include <string>
#include <map>
+#include "SDL_mixer.h"
+
+#include "vector.h"
+
class MusicRef;
class MovingObject;
bool music_enabled;
};
-#endif
+#endif /*SUPERTUX_SOUND_MANAGER_H*/
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <assert.h>
+#include <cassert>
#include <iostream>
+
#include "SDL.h"
+
#include "defines.h"
#include "special.h"
#include "camera.h"
#ifndef SUPERTUX_SPECIAL_H
#define SUPERTUX_SPECIAL_H
-#include <SDL.h>
+#include "SDL.h"
+
#include "bitmask.h"
#include "type.h"
#include "screen/texture.h"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
-#include <math.h>
+#include <cmath>
+
#include "globals.h"
#include "sprite.h"
#include "setup.h"
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef HEADER_SPRITE_HXX
-#define HEADER_SPRITE_HXX
+#ifndef SUPERTUX_SPRITE_H
+#define SUPERTUX_SPRITE_H
#include <string>
#include <vector>
+
#include "lispreader.h"
#include "screen/texture.h"
#include "vector.h"
int get_height() const;
};
-#endif
+#endif /*SUPERTUX_SPRITE_H*/
/* Local Variables: */
/* mode:c++ */
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
+
#include "lispreader.h"
#include "sprite_manager.h"
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef HEADER_SPRITE_MANAGER_HXX
-#define HEADER_SPRITE_MANAGER_HXX
+#ifndef SUPERTUX_SPRITE_MANAGER_H
+#define SUPERTUX_SPRITE_MANAGER_H
#include <map>
+
#include "sprite.h"
class SpriteManager
Sprite* load(const std::string& name);
};
-#endif
+#endif /*SUPERTUX_SPRITE_MANAGER_H*/
/* Local Variables: */
/* mode:c++ */
// 02111-1307, USA.
#include <sys/types.h>
-#include <ctype.h>
+#include <cctype>
#include <iostream>
-
#include <exception>
-#include "exceptions.h"
+#include "exceptions.h"
#include "defines.h"
#include "globals.h"
#include "setup.h"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
+#include <cassert>
+#include <iostream>
+
#include "tile.h"
#include "scene.h"
-#include <assert.h>
-#include <iostream>
#include "screen/drawing_context.h"
TileManager* TileManager::instance_ = 0;
#include <set>
#include <map>
#include <vector>
+
#include "screen/texture.h"
#include "globals.h"
#include "lispreader.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "tilemap.h"
-#include <assert.h>
+#include <cassert>
#include <algorithm>
#include <iostream>
#include <stdexcept>
-#include <math.h>
+#include <cmath>
+
+#include "tilemap.h"
#include "screen/drawing_context.h"
#include "level.h"
#include "tile.h"
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __TILEMAP_H__
-#define __TILEMAP_H__
+
+#ifndef SUPERTUX_TILEMAP_H
+#define SUPERTUX_TILEMAP_H
#include <vector>
+
#include "game_object.h"
#include "serializable.h"
#include "vector.h"
int layer;
};
-#endif
+#endif /*SUPERTUX_TILEMAP_H*/
// 02111-1307, USA.
#include "SDL.h"
+
#include "defines.h"
#include "timer.h"
// 02111-1307, USA.
#include "SDL_image.h"
+
#include "string.h"
#include "stdlib.h"
#include "setup.h"
#define SUPERTUX_TYPE_H
#include <string>
+
#include "SDL.h"
+
#include "scene.h"
/* 'Base' type for game objects */
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include <cmath>
+
#include "vector.h"
-#include <math.h>
Vector Vector::unit() const
{
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef __VECTOR_HPP__
-#define __VECTOR_HPP__
+
+#ifndef SUPERTUX_VECTOR_H
+#define SUPERTUX_VECTOR_H
class Vector
{
// for such simple stuff :)
};
-#endif
+#endif /*SUPERTUX_VECTOR_H*/
#include <iostream>
#include <fstream>
#include <vector>
-#include <assert.h>
+#include <cassert>
#include <unistd.h>
+
#include "globals.h"
#include "screen/texture.h"
#include "screen/screen.h"