RolePlayingDesign: Difference between revisions
Content deleted Content added
Added new |
No edit summary |
||
Line 30:
RPManager provides a simple interface to the GameManager for using it:
* addRPAction <br> addRPAction simply queues an action for that player to be executed on the next turn.▼
* getRPObject <br> getRPObject is a interface to manage RPWorld to ease the adquisition of the RPObject when exiting the game.▼
* onInit Player
* onExit Player<br> onInit and onExit are callback functions that are used by GameManager to notify that a player has entered the game or that a player has exit the game.▼
* transferContent<br> transferContent is a callback function too that is called by RPRuleProcessor to stream content to players.▼
▲addRPAction simply queues an action for that player to be executed on the next turn.
▲getRPObject is a interface to manage RPWorld to ease the adquisition of the RPObject when exiting the game.
▲onInit and onExit are callback functions that are used by GameManager to notify that a player has entered the game or that a player has exit the game.
▲transferContent is a callback function too that is called by RPRuleProcessor to stream content to players.
The main outline of RPManager could be:
| |||