Class Bot

  • Direct Known Subclasses:
    ChallengeBot, CreativeBot

    public abstract class Bot
    extends java.lang.Object
    A general class describing a abstract Bot kind. Use ChallengeBot or Creative Bot to implement a Bot.
    • Constructor Summary

      Constructors 
      Constructor Description
      Bot()
      Empty default constructor
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String getModeName()
      API name of the mode
      abstract void startGame​(ConnectionHandler conn)
      Gets called on game start.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bot

        public Bot()
        Empty default constructor
    • Method Detail

      • startGame

        public abstract void startGame​(ConnectionHandler conn)
        Gets called on game start. A ConnectionHandler is given for sending and receiving messages from/to the game.
        Parameters:
        conn - ConnectionHandler for sending and receiving
      • getModeName

        public abstract java.lang.String getModeName()
        API name of the mode
        Returns:
        mode string