The interface of the plugin engine. The IPluginEngine is responsible for managing all of the plugin objects that contain RuleSets or AI (or both). It has functions for loading specific RuleSets or AI and for checking to see if certain RuleSets or AI have already been loaded. It also provides member functions to retrieve BankData and PlayerData out of the currently loaded RuleSets.
When the IPluginEngine loads a RuleSet, it copies all of the component parts of the RuleSet into their respective destinations. All IRules and ILogic go into the IRuleEngine. All ImageSets go into the IImageEngine. And all IDrawObjects go into the IDrawObjectEngine. The IPluginEngine is accessible through the GameEngine.
IPluginEngine.h
The interface of the plugin engine. | |
Determines if a plugin module is loaded. | |
Determines if a RuleSet within a given module is loaded. | |
Loads a RuleSet into the GameEngine. | |
Loads an AI into the GameEngine. | |
Retreives PlayerData from all of the currently loaded RuleSets. | |
Fills the given array with all loaded RuleSets. | |
The IPluginEngine destructor. |
Determines if a plugin module is loaded. | |
Determines if a RuleSet within a given module is loaded. | |
Loads a RuleSet into the GameEngine. | |
Loads an AI into the GameEngine. | |
Retreives PlayerData from all of the currently loaded RuleSets. | |
Fills the given array with all loaded RuleSets. |
|
Determines if a RuleSet within a given module is loaded.
| module | The name of the module the RuleSet is in. |
| ruleset | The name of the RuleSet to check. |
A bool stating if the RuleSet is loaded. The value is true if both the module and RuleSet or loaded, and false if either the RuleSet, or the module is not loaded.
|
Loads a RuleSet into the GameEngine.
| module | The name of the module the RuleSet is in. |
| ruleset | The RuleSet to load. |
A bool indicating the success of the load. The value is true if the RuleSet was loaded, false if not.
|
Loads an AI into the GameEngine.
| module | The name of the module the AI is in. |
| ai | The AI to load. |
A bool indicating the success of the load. The value is true if the AI was loaded, false if not.
|
Retreives PlayerData from all of the currently loaded RuleSets.
| array | The outgoing array of PlayerData that will be filled by the function. |
|
Fills the given array with all loaded RuleSets. The RuleSets are stored in the array in a std::pair where the first element is the name of the module the RuleSet is in, and the second element is the name of the <Ruleset> itself.
| array | The array to fill with loaded RuleSet information. |
|
|
|
|
|
|
|
| virtual ~IPluginEngine()=0 |