summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
Commit message (Collapse)AuthorAgeFilesLines
...
* use $self->say for all messages, don't use the return value of saiddoy2009-01-251-11/+9
|
* commentdoy2009-01-251-0/+2
|
* handle initialization better - make sure init is called before taking any ↵doy2009-01-251-2/+13
| | | | turns, but don't call it if we're just doing a command (to make "!24 -help" work properly)
* don't force loading of all game plugins whenever one is calleddoy2009-01-241-2/+3
|
* factor out determining whether an action is a valid commanddoy2009-01-241-6/+12
|
* don't always format, that catches unintentional undef returnsdoy2009-01-241-6/+2
|
* apparently B::BB won't send '0' as a return value from said, so return ↵doy2009-01-241-1/+1
| | | | 'false' instead
* this *should* be the correct way to do this, but it still dies - and on the ↵doy2009-01-161-2/+8
| | | | call to blessed() no less. why?
* have to use inline_constructor => 0 in Bot::Games too, since it inherits the ↵doy2009-01-161-1/+1
| | | | Bot::BasicBot constructor
* initialization method is now just 'init'doy2009-01-161-2/+2
|
* okay, i think i finally have the meta-stuff done properly... we'll see!doy2009-01-161-2/+1
|
* make Command into a default method metaclass role, and turn the check for ↵doy2009-01-151-1/+2
| | | | whether or not a method is a command into an attribute on the method metaclass
* this doesn't need to be lazydoy2009-01-141-1/+0
|
* abstract the "don't pass args" logic out into the command roledoy2009-01-141-6/+1
|
* check for ->does the command role, rather than ->isa the command subclassdoy2009-01-141-6/+7
|
* update Bot::Games to use the new meta-stuff... completely untested, and ↵doy2009-01-141-10/+10
| | | | probably broken!
* ummm... what was this even doingdoy2009-01-141-10/+0
|
* stop processing input after running an _init methoddoy2008-12-201-3/+1
|
* make_immutable, no Moosedoy2008-12-201-0/+3
|
* don't call _init if it doesn't existdoy2008-12-201-2/+3
|
* don't pass undef into _formatdoy2008-12-181-1/+2
|
* format -> _formatdoy2008-12-181-1/+1
|
* anchor the action regexdoy2008-12-181-1/+1
|
* allow not passing an action, to just restart a gamedoy2008-12-181-2/+4
|
* allow games to run code on startup, and optionally print a messagedoy2008-12-181-3/+7
|
* make sure false values are visibledoy2008-12-181-0/+3
|
* pass the player in an extra hashref to actions, pass the arg as the first ↵doy2008-12-181-1/+1
| | | | argument
* refactor the printing into its own method, and use it when calling say() as welldoy2008-12-181-9/+14
|
* check is_over after actions other than turndoy2008-12-181-8/+16
|
* print complex data structures betterdoy2008-12-181-0/+12
|
* need to actually call the accessor, not just return itdoy2008-12-181-1/+1
|
* has_attribute doesn't traverse the inheritance hierarchy, have to use ↵doy2008-12-181-1/+1
| | | | find_attribute_by_name
* wrong methoddoy2008-12-181-1/+1
|
* a few more Bot::Games::foo -> Bot::Games::Game::foodoy2008-12-181-2/+2
|
* prefix needs to be rw now, since we're setting it in 'around new'doy2008-12-181-1/+1
|
* parse out prefix from the constructor parametersdoy2008-12-181-0/+10
|
* again, need laziness because B::BB isn't a moose class, so we don't get a ↵doy2008-12-181-0/+2
| | | | moose constructor
* typodoy2008-12-181-1/+1
|
* said gets a hashref, not a hashdoy2008-12-181-6/+6
|
* syntax errordoy2008-12-181-1/+1
|
* don't allow stuff to happen in private messagesdoy2008-12-181-0/+1
|
* expand functionality of game actions - force attribute access to be ↵doy2008-12-181-3/+8
| | | | read-only, and disallow access to _private members, and pass along extra args
* move game plugins into their own directorydoy2008-12-181-2/+2
|
* allow games to output things each turn, and at game enddoy2008-12-181-2/+7
|
* initial bot apidoy2008-12-181-0/+60