Class TowerController
Definecommand(:
command = 'towerstats', accessLevel = 'all', description = 'Show how many towers each faction has lost', help = 'towerstats.txt' )
Definecommand(:
command = 'attacks', alias = 'battles', accessLevel = 'all', description = 'Show the last Tower Attack messages', help = 'attacks.txt' )
Definecommand(:
command = 'forcescout', accessLevel = 'guild', description = 'Add tower info to watch list (bypasses some of the checks)', help = 'scout.txt' )
Definecommand(:
command = 'lc', accessLevel = 'all', description = 'Show status of towers', help = 'lc.txt' )
Definecommand(:
command = 'opentimes', accessLevel = 'guild', description = 'Show status of towers', help = 'scout.txt' )
Definecommand(:
command = 'penalty', accessLevel = 'all', description = 'Show orgs in penalty', help = 'penalty.txt' )
Definecommand(:
command = 'remscout', accessLevel = 'guild', description = 'Remove tower info from watch list', help = 'scout.txt' )
Definecommand(:
command = 'scout', accessLevel = 'guild', description = 'Add tower info to watch list', help = 'scout.txt' )
Definecommand(:
command = 'victory', accessLevel = 'all', description = 'Show the last Tower Battle results', help = 'victory.txt' )
Instance: Commands this controller contains:
Located at TOWER_MODULE/TowerController.class.php
public
|
#
registerAttackListener( $callback, $data = null )
Adds listener callback which will be called when tower attacks occur. |
public
|
|
public
|
#
attacksCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower attack messages. |
public
|
#
attacks2Command( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower attack messages by site number and optionally by page. |
public
|
#
attacksOrgCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower attack messages where given org has been an attacker or defender. |
public
|
#
attacksPlayerCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower attack messages where given player has been as attacker. |
public
|
|
public
|
#
lc2Command( $message, $channel, $sender, $sendto, $args )
This command handler shows status of towers. |
public
|
#
lc3Command( $message, $channel, $sender, $sendto, $args )
This command handler shows status of towers. |
public
|
|
public
|
#
penaltyCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows orgs in penalty. |
public
|
#
remscoutCommand( $message, $channel, $sender, $sendto, $args )
This command handler removes tower info to watch list. |
public
|
|
public
|
|
public
|
#
addScoutInfo( $sender, $playfield_name, $site_number, $closing_time, $ct_ql, $faction, $guild_name, $skip_checks )
|
public
|
|
public
|
#
victoryCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower battle results. |
public
|
#
victory2Command( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower battle results. |
public
|
#
victoryOrgCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower battle results. |
public
|
#
victoryPlayerCommand( $message, $channel, $sender, $sendto, $args )
This command handler shows the last tower battle results. |
public
|
|
public
|
|
protected
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
#
addScoutSite( $playfield_id, $site_number, $close_time, $ct_ql, $faction, $guild_name, $scouted_by )
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
public
|
$moduleName
Name of the module. Set automatically by module loader. |
|
public
|
$playfieldController
|
|
public
|
$playerManager
|
|
public
|
$text
|
|
public
|
$settingManager
|
|
public
|
$chatBot
|
|
public
|
$db
|
|
public
|
$util
|
|
public
|
$levelController
|
|
public
|
$logger
|
|
protected
array
|
$attackListeners
|
#
array()
|
public
string
|
$defaultTowerAttackSpam
|
#
"1"
|
public
string
|
$defaultTowerPageSize
|
#
"15"
|
public
string
|
$defaultCheckCloseTimeOnScout
|
#
"1"
|
public
string
|
$defaultCheckGuildNameOnScout
|
#
"1"
|