-shortcut to reset the GU is now start+square
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-06 11:34:00 +00:00
parent 0d2c6cf3e5
commit 85adde6c61
2 changed files with 48 additions and 48 deletions

View File

@@ -1,18 +1,18 @@
#ifndef _RULES_H_ #ifndef _RULES_H_
#define _RULES_H_ #define _RULES_H_
#include <string> #include <string>
#include <vector> #include <vector>
using namespace std; using namespace std;
class ManaCost; class ManaCost;
class Player; class Player;
class MTGPlayerCards; class MTGPlayerCards;
class MTGDeck; class MTGDeck;
class MTGCardInstance; class MTGCardInstance;
#define MAX_RULES_CARDS 4096; #define MAX_RULES_CARDS 4096;
class RulesPlayerZone{ class RulesPlayerZone{
public: public:
vector<int> cards; vector<int> cards;
@@ -31,8 +31,8 @@ class RulesPlayerData{
~RulesPlayerData(); ~RulesPlayerData();
void cleanup(); void cleanup();
}; };
class RulesState{ class RulesState{
public: public:
int phase; int phase;
@@ -40,35 +40,35 @@ class RulesState{
RulesState(); RulesState();
RulesPlayerData playerData[2]; RulesPlayerData playerData[2];
void cleanup(); void cleanup();
}; };
class Rules{ class Rules{
protected: protected:
Player * loadPlayerMomir(int isAI); Player * loadPlayerMomir(int isAI);
Player * loadPlayerRandom(int isAI, int mode); Player * loadPlayerRandom(int isAI, int mode);
Player * initPlayer(int playerId); Player * initPlayer(int playerId);
MTGDeck * buildDeck( int playerId); MTGDeck * buildDeck( int playerId);
int strToGameMode(string s); int strToGameMode(string s);
public: public:
enum { enum {
PARSE_UNDEFINED, PARSE_UNDEFINED,
PARSE_INIT, PARSE_INIT,
PARSE_PLAYER1, PARSE_PLAYER1,
PARSE_PLAYER2, PARSE_PLAYER2,
PARSE_PLAYERS PARSE_PLAYERS
}; };
Rules(string filename); Rules(string filename);
int load(string filename); int load(string filename);
int gamemode; int gamemode;
void initPlayers(); void initPlayers();
void addExtraRules(); void addExtraRules();
void initGame(); void initGame();
void cleanup(); void cleanup();
vector <string> extraRules; vector <string> extraRules;
RulesState initState; RulesState initState;
static int getMTGId(string name); static int getMTGId(string name);
static MTGCardInstance * getCardByMTGId(int mtgid); static MTGCardInstance * getCardByMTGId(int mtgid);
}; };
#endif #endif

View File

@@ -243,7 +243,7 @@ void GameApp::Update()
} }
//Restart Rendering engine when START and TRIANGLE ARE PRESSED SIMULTANEOUSLY //Restart Rendering engine when START and TRIANGLE ARE PRESSED SIMULTANEOUSLY
if (mEngine->GetButtonState(PSP_CTRL_START) && mEngine->GetButtonState(PSP_CTRL_TRIANGLE)){ if (mEngine->GetButtonState(PSP_CTRL_START) && mEngine->GetButtonState(PSP_CTRL_SQUARE)){
JRenderer::Destroy(); JRenderer::Destroy();
} }