Changes between Version 1 and Version 2 of Tutorial5TWBotExtensionBasics


Ignore:
Timestamp:
May 7, 2011 6:02:33 PM (8 years ago)
Author:
milosh
Comment:

Link to additional documentation.

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial5TWBotExtensionBasics

    v1 v2  
    7777    public void handleEvent(Message event) { 
    7878        String message = event.getMessage(); // Gets event message 
    79         //This line may be ugly, but it's important. Sometimes (for some reason), Message packets with an ID but no messager are sent. This makes sure that doesn't cause problems 
     79        //This line may be ugly, but it's important. Sometimes (for some reason), Message packets with an  
     80        //ID but no messager are sent. This makes sure that doesn't cause problems 
    8081        String name = event.getMessager() == null ? m_botAction.getPlayerName(event.getPlayerID()) : event.getMessager(); 
    8182         
     
    123124 
    124125On the whole, formatting in TWCore is inconsistent. However, we would like to beging forming some consistency about how things are ordered. For this reason, we ask that functions are sorted in a sensible order, such as the order they appear in the help file. The init() function should be the first function and the cancel() function should be the last. The other required functions should be just after the init() function. For more in depth questions, ask a developer! 
     126 
     127For more information on building Multibot modules, click [http://d1st0rt.sscentral.com/content/category/4/16/26/ here].