Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
spidamoo committed Oct 14, 2013
1 parent 4cea6cf commit e615142
Show file tree
Hide file tree
Showing 8 changed files with 426 additions and 11 deletions.
406 changes: 406 additions & 0 deletions SoDlib/SoDLib.depend

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SoDlib/include/Effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Effect
float time;
private:
};

#define EFFECT_H_COMPLETE
#endif // EFFECT_H
2 changes: 1 addition & 1 deletion SoDlib/include/EffectPrototype.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ class EffectPrototype
int type;
private:
};

#define EFFECTPROTOTYPE_H_COMPLETE
#endif // EFFECTPROTOTYPE_H
5 changes: 3 additions & 2 deletions SoDlib/include/HotSpotEffect.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <SoDlib.h>
#ifdef CHARACTER_H_COMPLETE
#ifndef HOTSPOTEFFECT_H
#define HOTSPOTEFFECT_H

#include <SoDlib.h>


class HotSpotEffect : public Effect
{
Expand All @@ -15,3 +15,4 @@ class HotSpotEffect : public Effect
};

#endif // HOTSPOTEFFECT_H
#endif
5 changes: 3 additions & 2 deletions SoDlib/include/HotSpotEffectPrototype.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <SoDlib.h>
#ifdef EFFECTPROTOTYPE_H_COMPLETE
#ifndef HOTSPOTEFFECTPROTOTYPE_H
#define HOTSPOTEFFECTPROTOTYPE_H

#include <SoDlib.h>


class HotSpotEffectPrototype : public EffectPrototype
{
Expand All @@ -17,3 +17,4 @@ class HotSpotEffectPrototype : public EffectPrototype
};

#endif // HOTSPOTEFFECTPROTOTYPE_H
#endif
5 changes: 3 additions & 2 deletions SoDlib/include/RectangularEffect.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <SoDlib.h>
#ifdef CHARACTER_H_COMPLETE
#ifndef RECTANGULAREFFECT_H
#define RECTANGULAREFFECT_H

#include <SoDlib.h>


class RectangularEffect : public Effect
{
Expand All @@ -15,3 +15,4 @@ class RectangularEffect : public Effect
};

#endif // RECTANGULAREFFECT_H
#endif
6 changes: 6 additions & 0 deletions SoDlib/include/SoDlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ class GroundLine;
class Platform;
class MapAnimation;
class DebugDraw;
class EffectPrototype;
class Effect;
class RectangularEffect;
class HotSpotEffect;
class Game;
class hgeGUIMenuItem;

typedef bool (*menuCallback)(hgeGUIMenuItem* sender);

#include <string>

#include <hge.h>
#include <hgeanim.h>
#include <hgegui.h>
Expand Down
6 changes: 3 additions & 3 deletions SoDlib/src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bool Game::preload()
bool Game::loadEffectPrototypes(char* fileName)
{
printf("loading effect prototypes %s ... \n", fileName);
TiXmlDocument doc(fn);
TiXmlDocument doc(fileName);
bool loadOkay = doc.LoadFile();
if (loadOkay) {
TiXmlElement* root = doc.FirstChildElement("effect_prototypes");
Expand All @@ -115,10 +115,10 @@ bool Game::loadEffectPrototypes(char* fileName)
EffectPrototype* newObject;
switch (type) {
case EFFECT_TYPE_RECTANGULAR:
newObject = new RectangularEffectPrototype;
newObject = new RectangularEffectPrototype();
break;
case EFFECT_TYPE_HOTSPOT:
newObject = new HotSpotEffectPrototype;
newObject = new HotSpotEffectPrototype();
break;
}
newObject->loadFromXml(element);
Expand Down

0 comments on commit e615142

Please sign in to comment.