ExternalLibs supertux : SDL SDLIMAGE GL OPENAL VORBIS VORBISFILE OGG ICONV PHYSFS BINRELOC LIBCURL ;
Help supertux : "Build the supertux executable" ;
IncludeDir supertux : squirrel/include squirrel ;
+Package [ Wildcard scripting : *.cpp *.hpp ] ;
#include <list>
#include <physfs.h>
#include <sys/stat.h>
-#include <stdio.h>
+#include <cstdio>
#include "addon_manager.hpp"
#include "config.h"
#include "log.hpp"
#include <algorithm>
#include <iostream>
-#include <stdio.h>
-#include <float.h>
-#include <math.h>
+#include <cstdio>
+#include <cfloat>
+#include <cmath>
#include "math/vector.hpp"
#include "math/aatriangle.hpp"
#include "math/rect.hpp"
#ifndef __COLLISION_H__
#define __COLLISION_H__
-#include <float.h>
+#include <cfloat>
#include "collision_hit.hpp"
#include <limits>
#ifndef SUPERTUX_COLLISION_HIT_H
#define SUPERTUX_COLLISION_HIT_H
-#include <float.h>
-#include <math.h>
+#include <cfloat>
+#include <cmath>
#include "math/vector.hpp"
/**
#include "sector.hpp"
#include "tile_manager.hpp"
#include "spawn_point.hpp"
+#include "object/platform.hpp"
+#include "object/block.hpp"
void
FlipLevelTransformer::transform_sector(Sector* sector)
#define __FLIP_LEVEL_TRANSFORMER_H__
#include "level_transformer.hpp"
-#include "object/platform.hpp"
-#include "object/path.hpp"
-#include "object/block.hpp"
class TileMap;
class BadGuy;
class SpawnPoint;
class MovingObject;
+class Platform;
+class Block;
/** Vertically or horizontally flip a level */
class FlipLevelTransformer : public LevelTransformer
#include <string>
#include "refcounter.hpp"
-#include "lisp/lisp.hpp"
class DrawingContext;
class ObjectRemoveListener;
#include <string>
#include <SDL.h>
+#include <squirrel.h>
#include "screen.hpp"
-#include "timer.hpp"
-#include "statistics.hpp"
#include "math/vector.hpp"
-#include "console.hpp"
#include "video/surface.hpp"
#include "object/endsequence.hpp"
#define __SUPERTUX_MSG_H__
#include <iostream>
-#include <stdio.h>
+#include <cstdio>
#include "console.hpp"
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
#include <config.h>
-#include <assert.h>
+#include <cassert>
#include "log.hpp"
#include "main.hpp"
#include <stdexcept>
#include <sstream>
-#include <time.h>
-#include <stdlib.h>
+#include <ctime>
+#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <assert.h>
#include <physfs.h>
#include <SDL.h>
#include <SDL_image.h>
#include "mainloop.hpp"
-#include <stdlib.h>
+#include <cstdlib>
#include <SDL.h>
#include "video/drawing_context.hpp"
#include "control/joystickkeyboardcontroller.hpp"
#include "path.hpp"
+#include "lisp/writer.hpp"
#include "lisp/lisp.hpp"
#include "lisp/list_iterator.hpp"
#include "object_factory.hpp"
#include "lisp/lisp.hpp"
#include "lisp/parser.hpp"
#include "object_factory.hpp"
+#include "math/vector.hpp"
Factories* object_factories = 0;
#include <string>
#include <map>
-#include "lisp/lisp.hpp"
-#include "game_object.hpp"
-#include "math/vector.hpp"
+namespace lisp { class Lisp; }
+class Vector;
+class GameObject;
class Factory
{
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <config.h>
-#include <math.h>
+#include <cmath>
#include "lisp/writer.hpp"
#include "lisp/lisp.hpp"
#include "player_status.hpp"
#ifndef SUPERTUX_PLAYERSTATUS_H
#define SUPERTUX_PLAYERSTATUS_H
-#include <assert.h>
#include <memory>
-#include "lisp/lisp.hpp"
-#include "timer.hpp"
#include "serializable.hpp"
-#include "sprite/sprite.hpp"
-#include "console.hpp"
-#include "video/surface.hpp"
+
+namespace lisp{ class Writer; }
+namespace lisp{ class Lisp; }
+class Surface;
static const float BORDER_X = 10;
static const float BORDER_Y = 10;
#include <stdexcept>
-#include <time.h>
+#include <ctime>
#include "random_generator.hpp"
-#include "scripting/squirrel_util.hpp"
RandomGenerator systemRandom; // global random number generator
#ifndef __RANDOM_GENERATOR__
#define __RANDOM_GENERATOR__
-#include "script_interface.hpp"
-
class RandomGenerator
{
private:
#ifndef __REFCOUNTER_HPP__
#define __REFCOUNTER_HPP__
-#include <assert.h>
+#include <cassert>
/**
* A base class that provides reference counting facilities
#include <fstream>
#include <sstream>
#include <stdexcept>
-#include <float.h>
-#include <math.h>
+#include <cfloat>
+#include <cmath>
#include <limits>
#include <physfs.h>
#ifndef SUPERTUX_SECTOR_H
#define SUPERTUX_SECTOR_H
-#include <string>
#include <vector>
#include <list>
#include <memory>
#include <squirrel.h>
#include "direction.hpp"
-#include "math/vector.hpp"
-#include "video/drawing_context.hpp"
-#include "script_interface.hpp"
+#include "video/color.hpp"
#include "scripting/ssector.hpp"
namespace lisp {
class Constraints;
}
+class Vector;
class Rect;
class Sprite;
class GameObject;
class CollisionHit;
class Level;
class Portable;
+class DrawingContext;
enum MusicType {
LEVEL_MUSIC,
#ifndef SUPERTUX_SERIALIZABLE_H
#define SUPERTUX_SERIALIZABLE_H
-#include "lisp/writer.hpp"
+namespace lisp { class Writer; }
class Serializable
{
#include <string>
#include "math/vector.hpp"
-#include "lisp/lisp.hpp"
+namespace lisp { class Lisp; }
class SpawnPoint
{
}
Library squirrel
- : [ Wildcard include : *.h ]
- [ Wildcard squirrel : *.cpp *.h ]
+ : [ Wildcard squirrel : *.cpp *.h ]
[ Wildcard sqstdlib : *.cpp *.c *.h ]
$(EXTRA_SOURCES)
: noinstall
CFLAGS on $(i) = [ Filter [ on $(i) GetVar CFLAGS ] : -Wall -W -Werror ] -include $(top_builddir)/config.h ;
}
IncludeDir squirrel : include ;
+Package [ Wildcard include : *.h ] ;
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <config.h>
-#include <assert.h>
-#include <math.h>
+#include <cassert>
+#include <cmath>
#include <sstream>
#include <limits>
#include "video/drawing_context.hpp"
#include "gettext.hpp"
+#include "lisp/writer.hpp"
#include "lisp/lisp.hpp"
#include "resources.hpp"
#include "main.hpp"
#define SUPERTUX_STATISTICS_H
#include "timer.hpp"
-#include "lisp/lisp.hpp"
-#include "lisp/writer.hpp"
-#include "video/surface.hpp"
-#include "video/drawing_context.hpp"
+
+namespace lisp { class Writer; }
+namespace lisp { class Lisp; }
+class Surface;
+class DrawingContext;
/** This class is a layer between level and worldmap to keep
* track of stuff like scores, and minor, but funny things, like
#include <map>
#include "screen.hpp"
-#include "video/font.hpp"
+#include "math/vector.hpp"
class DrawingContext;
class Surface;
+class Font;
/**
* Helper class for InfoBox: Represents a line of text
#include <stdint.h>
#include "video/surface.hpp"
#include "math/rect.hpp"
-#include "lisp/lisp.hpp"
+
+namespace lisp { class Lisp; }
class DrawingContext;
#include <stdexcept>
#include <sstream>
#include <iostream>
-#include <assert.h>
+#include <cassert>
#include <SDL.h>
#include "video/drawing_context.hpp"
#include "log.hpp"
#include <map>
#include <iostream>
#include <stdint.h>
-#include <assert.h>
+#include <cassert>
#include "log.hpp"
#include "tile.hpp"
// 02111-1307, USA.
#include <config.h>
-#include <math.h>
+#include <cmath>
#include "timer.hpp"
float game_time = 0;
#include <iostream>
#include <sstream>
#include <stdexcept>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <cerrno>
#include <unistd.h>
#include <cmath>
#include <SDL.h>
// 02111-1307, USA.
#include <config.h>
-#include <stddef.h>
+#include <cstddef>
#include <physfs.h>
#include <stdexcept>
#include <config.h>
#include "tux.hpp"
+#include "sprite/sprite.hpp"
#include "sprite/sprite_manager.hpp"
#include "video/drawing_context.hpp"
#include "player_status.hpp"
#include "shrinkfade.hpp"
#include "video/surface.hpp"
#include "video/drawing_context.hpp"
+#include "sprite/sprite.hpp"
#include "sprite/sprite_manager.hpp"
#include "audio/sound_manager.hpp"
#include "lisp/parser.hpp"