/**
  * The constructor has been extended so that we can initialize this
  * class a bit. At the moment there's only the array which defines what
  * triggers can be ignored from the Nuwani bots, but I'm sure this is
  * going to be extended in the future.
  * 
  * @param LVPEchoHandler $pModule The LVPEchoHandler module we're residing in.
  */
 public function __construct(LVPEchoHandler $pModule)
 {
     parent::__construct($pModule);
     $this->m_aIgnoreTriggers = array('7Online', '4Upload', '6***', '6Matches', '4Error:', '4Notice:');
     $this->m_pModule->config->addDirective('parser', 'welcomemsg', true, FILTER_VALIDATE_BOOLEAN);
     $this->m_pModule->config->addDirective('parser', 'reports', true, FILTER_VALIDATE_BOOLEAN);
 }
Exemplo n.º 2
0
 /**
  * The constructor will call the parent constructor and prepare some
  * extra stuff in this class as an added bonus. This includes the level
  * colors and initializing the ingamecrew variables.
  * 
  * @param LVPEchoHandler $pEchoHandler The LVPEchoHandler module we're residing in.
  * @param array $aCrewColors The colors for every level within the crew.
  */
 public function __construct(LVPEchoHandler $pEchoHandler, $aCrewColors)
 {
     parent::__construct($pEchoHandler);
     $this->m_aColors = $aCrewColors;
     $this->clearIngameCrew();
     $this->registerCommands();
     $this->loadState();
 }
Exemplo n.º 3
0
 /**
  * The constructor has been overridden to provide functionality of
  * loading the settings.
  * 
  * @param LVPEchoHandler $pModule The LVPEchoHandler module we're residing in.
  */
 public function __construct(LVPEchoHandler $pModule)
 {
     parent::__construct($pModule);
     if (file_exists(self::PERSISTENCE_FILE_NAME)) {
         $aLoadedSettings = unserialize(file_get_contents(self::PERSISTENCE_FILE_NAME));
         $this->m_aConfiguration = $aLoadedSettings[0];
         $this->m_aDirectiveFilter = $aLoadedSettings[1];
     }
     $this->registerCommands();
 }
Exemplo n.º 4
0
 /**
  * The constructor will call the parent constructor and prepare some
  * extra stuff in this class as an added bonus.
  * 
  * @param LVPEchoHandler $pEchoHandler The LVPEchoHandler module we're residing in.
  */
 public function __construct(LVPEchoHandler $pEchoHandler)
 {
     parent::__construct($pEchoHandler);
     $this->load();
 }
Exemplo n.º 5
0
 /**
  * The constructor has been overridden to provide functionality of
  * reloading the players that were serialized from a previous session.
  * 
  * @param LVPEchoHandler $pModule The LVPEchoHandler module we're residing in.
  */
 public function __construct(LVPEchoHandler $pModule)
 {
     parent::__construct($pModule);
     $this->loadState();
 }
Exemplo n.º 6
0
 /**
  * The constructor has been overridden so that we can register our
  * commands with the command handler as soon as we fire up.
  * 
  * @param LVPEchoHandler $pModule The LVPEchoHandler module we're residing in.
  */
 public function __construct(LVPEchoHandler $pModule)
 {
     parent::__construct($pModule);
     $this->registerCommands();
 }