Files
aowow/includes/class.faction.php
Sarjuuk 84ba5012bc mmf (misc minor fixes)
- wrong static function calls in achievement
- quality-integer no longer displayed in opensearch
2013-03-10 23:48:32 +01:00

45 lines
895 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
class FactionList extends BaseType
{
public static function getName($id)
{
$n = DB::Aowow()->SelectRow('
SELECT
name_loc0,
name_loc2,
name_loc3,
name_loc6,
name_loc8
FROM
?_factions
WHERE
factionID = ?d',
$id
);
return Util::localizedString($n, 'name');
}
public function reactsAgainst($faction)
{
// see factionTemplate
/*
1: friendly
0: neutral
-1: hostile
*/
}
public function getListviewData() { }
public function addGlobalsToJScript(&$refs) { }
public function addRewardsToJScript(&$refs) { }
public function renderTooltip() { }
}
?>