- Added ads support for Android

- basic "message" system between JGE and java through jni 
- Fixed pause/resume on android/sdl
This commit is contained in:
wagic.the.homebrew
2011-09-04 02:45:18 +00:00
parent 269934fe1e
commit 33691d1f13
21 changed files with 396 additions and 114 deletions

View File

@@ -93,6 +93,7 @@ public:
void LoadGameStates();
void SetNextState(int state);
void SetCurrentState(GameState * state);
void DoTransition(int trans, int tostate, float dur = -1, bool animonly = false);
void DoAnimation(int trans, float dur = -1);
static hgeParticleSystem * Particles[6];

View File

@@ -44,9 +44,10 @@ class GameState
protected:
GameApp* mParent;
JGE* mEngine;
string mStringID;
public:
GameState(GameApp* parent);
GameState(GameApp* parent, string id);
virtual ~GameState(){}
virtual void Create(){}
@@ -62,6 +63,8 @@ public:
virtual void Update(float dt) = 0;
virtual void Render() = 0;
string getStringID() {return mStringID;};
// deck manipulation methods
// 2010/09/15:
// this was originally one method to do everything. That has been split up into two distinct

View File

@@ -45,6 +45,7 @@ private:
void loadPlayer(int playerId, int decknb = 0, bool isAI = false, bool isNetwork = false);
void ConstructOpponentMenu(); //loads the opponentMenu if it doesn't exist
void initScroller();
void setGamePhase(int newGamePhase);
public:
GameStateDuel(GameApp* parent);