com.levelonelabs.aimbot.modules
Class TicTacToeModule

java.lang.Object
  extended bycom.levelonelabs.aimbot.BotModule
      extended bycom.levelonelabs.aimbot.modules.TicTacToeModule

public class TicTacToeModule
extends BotModule

Allows someone to play Tic Tac Toe against the computer or competitior. This is to demonstrate how state can be saved for a game or other type of module. Thanks to Niel Eyde for the idea.

Author:
Will Gorman

Field Summary
 
Fields inherited from class com.levelonelabs.aimbot.BotModule
bot
 
Constructor Summary
TicTacToeModule(AIMBot bot)
          Constructor for the TicTacToeModule object
 
Method Summary
 java.lang.String getName()
          Gets the name attribute of the Tic Tack Toe Module object
 java.util.ArrayList getServices()
          Gets the services attribute of the PreferenceModule object
 java.lang.String help()
          Describes the usage of the module
 void performService(AIMBuddy buddy, java.lang.String query)
          Handle a tic tac toe query
 void sendMessageUnlessRobot(AIMBuddy buddy, java.lang.String message)
          sends a message unless it is to the computer
 
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
 

Constructor Detail

TicTacToeModule

public TicTacToeModule(AIMBot bot)
Constructor for the TicTacToeModule object

Parameters:
bot -
Method Detail

getServices

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

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

getName

public java.lang.String getName()
Gets the name attribute of the Tic Tack Toe Module 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

sendMessageUnlessRobot

public void sendMessageUnlessRobot(AIMBuddy buddy,
                                   java.lang.String message)
sends a message unless it is to the computer

Parameters:
buddy - buddy to send message to
message - message to send

performService

public void performService(AIMBuddy buddy,
                           java.lang.String query)
Handle a tic tac toe query

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


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