]> git.mmlx.us Git - IvanGame.git/commitdiff
Edited CMakeLists and fns.h to allow sqrt and SizeD to work
authorIvan Hernandez <iturtleman128@gmail.com>
Wed, 19 Jan 2011 01:55:10 +0000 (19:55 -0600)
committerIvan Hernandez <iturtleman128@gmail.com>
Wed, 19 Jan 2011 01:55:10 +0000 (19:55 -0600)
CMakeLists.txt
fns.cpp
fns.h

index 2de8426449fc7b63a9187120de20f761abfbab34..1661778227f8f4c8403868baf6558571769c93c9 100644 (file)
@@ -4,6 +4,6 @@ project(game)
 find_package(SDL REQUIRED)
 find_package(SDL_image REQUIRED)
 
-add_executable(game Animation.cpp fns.cpp Game.cpp Level.cpp main.cpp Sprite.cpp Text.cpp Actor.cpp Background.cpp LevelWorld.cpp)
+add_executable(game Animation.cpp fns.cpp Game.cpp Level.cpp main.cpp Sprite.cpp Text.cpp Actor.cpp Background.cpp LevelWorld.cpp WorldObject.cpp Collision.cpp)
 
 target_link_libraries(game ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY})
diff --git a/fns.cpp b/fns.cpp
index 1a7da663296c8ede6fbfef285ba68a8287520828..2a7719a68d6add17fefd1cc5028f0aff37784332 100644 (file)
--- a/fns.cpp
+++ b/fns.cpp
@@ -1,5 +1,6 @@
 #include "fns.h"
 #include <SDL/SDL_image.h>
+#include <math.h>
 
 #ifndef RELEASE
 #include <iostream>
diff --git a/fns.h b/fns.h
index 6d7967a04f162ecd58843a010ae1b369dcb31a93..54bdbe3ef6c9b8edb492900463c285e2c43cdbad 100644 (file)
--- a/fns.h
+++ b/fns.h
@@ -9,6 +9,8 @@ using namespace std;
 
 SDL_Surface* LoadImage( std::string filename );/**< Loads supported images. */
 
+class SizeD;
+
 /** 2D position or vector placed here because of general access*/
 class Point2D
 {