com.levelonelabs.aimbot.modules
Class MegaHalModule

java.lang.Object
  extended bycom.levelonelabs.aimbot.BotModule
      extended bycom.levelonelabs.aimbot.modules.MegaHalModule
All Implemented Interfaces:
megahal.MegaHalInterface

public class MegaHalModule
extends BotModule
implements megahal.MegaHalInterface

Creates Babel poetry from user input

Author:
Will Gorman

Field Summary
protected  java.lang.String directory
          used for specifing which brain directory to use
protected  java.lang.String last
          remembers previous brain directory
protected  int order
          tells MegaModel which order (how many contexts) it should be.
 
Fields inherited from class com.levelonelabs.aimbot.BotModule
bot
 
Constructor Summary
MegaHalModule(AIMBot bot)
          Constructor for the BabelModule object
 
Method Summary
 void debug(java.lang.String str)
          allows for printing of debug information.
 java.lang.String getName()
          Gets the name attribute of the BabelModule object
 java.util.ArrayList getServices()
          Gets the services attribute of the BabelModule object
 java.lang.String help()
          Describes the usage of the module
 void performService(AIMBuddy buddy, java.lang.String query)
          Create poetry
 boolean progress(java.lang.String message, int done, int total)
          allow for progress tracking of certain activities in MegaModel.
 boolean warn(java.lang.String title, java.lang.String error_msg)
          warn is used for errors that occur.
 
Methods inherited from class com.levelonelabs.aimbot.BotModule
addAIMListener, addBuddies, addBuddy, denyBuddy, getBuddy, getBuddyNames, getPermitMode, permitBuddy, removeBuddies, removeBuddy, sendMessage, sendWarning, setAvailable, setPermitMode, setUnavailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

order

protected int order
tells MegaModel which order (how many contexts) it should be.


directory

protected java.lang.String directory
used for specifing which brain directory to use


last

protected java.lang.String last
remembers previous brain directory

Constructor Detail

MegaHalModule

public MegaHalModule(AIMBot bot)
Constructor for the BabelModule object

Parameters:
bot -
Method Detail

warn

public boolean warn(java.lang.String title,
                    java.lang.String error_msg)
warn is used for errors that occur.

Specified by:
warn in interface megahal.MegaHalInterface
Parameters:
title - error title.
error_msg - error message.
Returns:
boolean whether printing of error was successful.

progress

public boolean progress(java.lang.String message,
                        int done,
                        int total)
allow for progress tracking of certain activities in MegaModel.

Specified by:
progress in interface megahal.MegaHalInterface
Parameters:
message - message to display
done - amount completed.
total - total amount to complete.
Returns:
whether printing of progress was complete or not.

debug

public void debug(java.lang.String str)
allows for printing of debug information.

Specified by:
debug in interface megahal.MegaHalInterface
Parameters:
str - debug string

getServices

public java.util.ArrayList getServices()
Gets the services attribute of the BabelModule object

Specified by:
getServices in class BotModule
Returns:
The services value

getName

public java.lang.String getName()
Gets the name attribute of the BabelModule object

Specified by:
getName in class BotModule
Returns:
The name value

help

public java.lang.String help()
Describes the usage of the module

Specified by:
help in class BotModule
Returns:
the usage of the module

performService

public void performService(AIMBuddy buddy,
                           java.lang.String query)
Create poetry

Specified by:
performService in class BotModule
Parameters:
buddy -
query -


Copyright © 2001-2005 Java AIM Bot. All Rights Reserved.