- Fixed a bug where the AI would block its own attacking creatures (I reintroduced that bug recently when I removed a safeguard Zethfox had added a while ago)
- Added a way to specify "no interrupt" in modrules.xml (I need to write a doc about this file) for a given game. This does not mean the stack does not show up (the stack is interesting to see what the opponent does), but that it only offers to continue.
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Wagic, The Homebrew ?! is licensed under the BSD license
|
||||
* See LICENSE in the Folder's root
|
||||
* http://wololo.net/wagic/
|
||||
*/
|
||||
|
||||
/*
|
||||
ModRules class describes global game rules used for a given Wagic Mod.
|
||||
These rules describe some high level Game rules,
|
||||
some graphical effects, what parts of the game are made accessible to the player, etc...
|
||||
They are accessed through the global variable gModRules, and loaded from rules/modrules.xml
|
||||
*/
|
||||
|
||||
#ifndef _MODRULES_H_
|
||||
#define _MODRULES_H_
|
||||
|
||||
@@ -70,6 +83,16 @@ public:
|
||||
~ModRulesMenu();
|
||||
};
|
||||
|
||||
class ModRulesGame
|
||||
{
|
||||
public:
|
||||
bool mCanInterrupt;
|
||||
public:
|
||||
bool canInterrupt() {return mCanInterrupt;};
|
||||
ModRulesGame();
|
||||
void parse(TiXmlElement* element);
|
||||
};
|
||||
|
||||
class ModRulesGeneral
|
||||
{
|
||||
protected:
|
||||
@@ -98,6 +121,7 @@ public:
|
||||
ModRulesGeneral general;
|
||||
ModRulesCards cards;
|
||||
ModRulesMenu menu;
|
||||
ModRulesGame game;
|
||||
|
||||
bool load(string filename);
|
||||
static int getValueAsInt(TiXmlElement* element, string childName);
|
||||
|
||||
Reference in New Issue
Block a user