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 2de8426..1661778 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 1a7da66..2a7719a 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 6d7967a..54bdbe3 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
 {