Volity::RefereeClass for in-MUC game overseers | |
Download |
Volity::Referee Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jason McIntosh
- Publisher web site:
- http://volity.org/projects/gamut/
Volity::Referee Tags
Volity::Referee Description
Class for in-MUC game overseers Volity::Referee is a Perl class for in-MUC game overseers.An object of this class represents a Volity referee, the automated process that sits in a MUC along with the players, and arbitrates the game for them. See the general Volity documentation for a more detailed description of how this works.In the Frivolity system, a Volity::Server object automatically makes a referee object and sends it to the appropriate MUC when a game starts. The class of referee it makes depends upon the value of the server object's referee_class instance variable, but most games can get away with using this default class, and putting all their game logic in a Volity::Game subclass.USAGEAfter being instanced, your Volity::Game subclass object will have a referee object as its referee instance variable, accessible through the referee() accessor.In many cases, you can program your game module without ever directly referring to the referee. While this class does make many important methods available (such as seats()), they are transparently available from your game object as well. The referee simply sits in the background and takes care of all the Volity protocol-level stuff for you, letting you concentrate on making your game work. Requirements: · Perl
Volity::Referee Related Software