]> git.mmlx.us Git - IvanGame.git/commitdiff
fixed up documentation bitching
authorIvan Hernanez <iturtleman128@gmail.com>
Fri, 1 Jun 2012 23:19:55 +0000 (18:19 -0500)
committerIvan Hernanez <iturtleman128@gmail.com>
Fri, 1 Jun 2012 23:19:55 +0000 (18:19 -0500)
Behaviors.h
Level.h
LevelFns.h
LoadResources.cpp
game.vcxproj

index 795329ae746d2003ca57b08aaf976ee843eaf570..99d1b1d5d23be6e71ea6ce83663bd726eb7b3677 100644 (file)
@@ -7,7 +7,7 @@
 using std::vector;
 using std::string;
 
-///\file this file should contain all Behaviors for WorldObjects inlcuding Backgrounds
+///\file Behaviors.h this file should contain all Behaviors for WorldObjects inlcuding Backgrounds
 
 
 #endif
diff --git a/Level.h b/Level.h
index f572473b37a8c4d4981d0117b14083e4b7c6df83..ef41000c8fbfaf57ebccddaf85f61eb02acb856f 100644 (file)
--- a/Level.h
+++ b/Level.h
@@ -30,8 +30,10 @@ public:
        /**
        Level constructor
        \param name of the level
-       \param loadBehavior the Loading Behavior for this level (Run once).
-       \param updateBehavior the Updating Behavior for this level (Run every loop).
+       \param loadBehave the Loading Behavior for this level (Run when loading).
+       \param updateBehave the Updating Behavior for this level (Run every loop).
+       \param endBehave the Unloading Behavior for this level (when leaving level).
+       \param winCond Returns a boolean telling the level that it shuold unload.
        */
        Level(string name, Condition winCond, Behavior loadBehave = DoNothing, Behavior updateBehave = DoNothing, Behavior endBehave = DoNothing);
        ~Level();
@@ -43,7 +45,7 @@ public:
        void unload();/**< Runs load action*/
        void addSprite(Sprite* sp);/**< add a Sprite to the list of sprites \param sp Sprite to add */
        Sprite* getSprite(string name);/**< gets the first sprite with the given name \param name Name of the sprite \return Pointer to the requested Sprite */
-       void removeSprite(Sprite* sp);/**< remove the Sprite sp from the list of sprites \param ps Sprite to remove */
+       void removeSprite(Sprite* sp);/**< remove the Sprite sp from the list of sprites \param sp Sprite to remove */
        void addAnimation(Animation anim);/**< add a Actor to the list of sprites \param anim The actor to add */
        Animation* getAnimation(string name);/**< get a Actor* to the list of sprites \param name Name of the actor \return Pointer to the actor we requested or null */
        void removeAnimation(Animation anim);/**< remove an Actor to the list of sprites  \param anim The actor to add */
index c700d0218414fd6af10451aa96142eb0efd33b15..5e78e70a6fc71f0edf5f6435a6943d64964ff9f9 100644 (file)
@@ -3,7 +3,7 @@
 #include "Game.h"
 #include "Level.h"
 #include "SDL_ttf.h"
-///\file this file should contain all Behaviors for Levels
+///\file LevelFns.h this file should contain all Behaviors for Levels
 
 void LevelWorldLoad(){
        Level* l = Game::game()->LoadingLevel;
index 4b286463b128f7d2d3e35fee3e1c0422c045e9e2..71cc8d42eb80e0ab4a7e1c9f83ac2f0c9ef8f200 100644 (file)
@@ -2,7 +2,7 @@
 #include "fns.h"
 #include "LevelFns.h"
 
-///\file this file should contain implementations for loading resources
+///\file LoadResources.cpp this file should contain implementations for loading resources
 
 void Game::LoadResources(){
        mLevels.push_back(new Level("World", NeverEnd, LevelWorldLoad, LevelWorldUpdate));
index 87c83f770a73496a116dee1e2dc4bff23a151fce..5143c1171ee816218ad297d0e5ca2a7ae6cae21f 100644 (file)
@@ -96,7 +96,6 @@ cd ../../</Command>
     <ClInclude Include="Actor.h" />
     <ClInclude Include="Animation.h" />
     <ClInclude Include="Background.h" />
-    <ClInclude Include="Behavior.h" />
     <ClInclude Include="Behaviors.h" />
     <ClInclude Include="Collision.h" />
     <ClInclude Include="fns.h" />