fix: fix all constructors

This commit is contained in:
Emmanuel BENOîT 2024-12-31 10:42:58 +01:00
parent c5e2b30a11
commit 9e12cf9036
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
166 changed files with 166 additions and 166 deletions

View file

@ -2,7 +2,7 @@
class beta5_alliance_getRequests {
function beta5_alliance_getRequests($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_getVoters {
function beta5_alliance_getVoters($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_kick {
function beta5_alliance_kick($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_leave {
function beta5_alliance_leave($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->players = $this->lib->game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_alliance_modifyForum {
function beta5_alliance_modifyForum($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_modifyRank {
function beta5_alliance_modifyRank($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_moveForum {
function beta5_alliance_moveForum($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_rejectRequest {
function beta5_alliance_rejectRequest($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->msgs = $this->lib->game->getLib('beta5/msg');

View file

@ -2,7 +2,7 @@
class beta5_alliance_removeCandidate {
function beta5_alliance_removeCandidate($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_sendRequest {
function beta5_alliance_sendRequest($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_setDemocratic {
function beta5_alliance_setDemocratic($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_setForumAccess {
function beta5_alliance_setForumAccess($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_setSuccessor {
function beta5_alliance_setSuccessor($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_stepDown {
function beta5_alliance_stepDown($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_takePresidency {
function beta5_alliance_takePresidency($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_alliance_updateVictory {
function beta5_alliance_updateVictory($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -14,7 +14,7 @@ class beta5_bq_library {
'replace'
);
function beta5_bq_library($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_bq_append {
function beta5_bq_append($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_bq_flush {
function beta5_bq_flush($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_bq_get {
function beta5_bq_get($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_bq_getReplacementCost {
function beta5_bq_getReplacementCost($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_bq_remove {
function beta5_bq_remove($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_bq_reorder {
function beta5_bq_reorder($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_bq_replace {
function beta5_bq_replace($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -6,7 +6,7 @@ class beta5_ecm_library {
var $eccmTable = array();
var $probTables = array();
function beta5_ecm_library($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_fleet_arrival {
function beta5_fleet_arrival($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->move = $this->lib->game->getLib('beta5/moving');

View file

@ -2,7 +2,7 @@
class beta5_fleet_autoSplit {
function beta5_fleet_autoSplit($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->standby = $this->lib->game->getLib('beta5/standby');

View file

@ -2,7 +2,7 @@
class beta5_fleet_disband {
function beta5_fleet_disband($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->planets = $this->lib->game->getLib('beta5/planet');

View file

@ -2,7 +2,7 @@
class beta5_fleet_get {
function beta5_fleet_get($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_fleet_getLocation {
function beta5_fleet_getLocation($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_fleet_getPlayerLocations {
function beta5_fleet_getPlayerLocations($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_fleet_merge {
function beta5_fleet_merge($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->moving = $this->lib->game->getLib('beta5/moving');

View file

@ -2,7 +2,7 @@
class beta5_fleet_sendMoveMessages {
function beta5_fleet_sendMoveMessages($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->msg = $this->lib->game->getLib('beta5/msg');

View file

@ -2,7 +2,7 @@
class beta5_fleet_setOrders {
function beta5_fleet_setOrders($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->moving = $this->lib->game->getLib('beta5/moving');

View file

@ -2,7 +2,7 @@
class beta5_fleet_split {
function beta5_fleet_split($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_fleet_switchStatus {
function beta5_fleet_switchStatus($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -19,7 +19,7 @@ class beta5_forums_library {
'updateLast'
);
function beta5_forums_library($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_deletePost {
function beta5_forums_deletePost($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_deleteTopic {
function beta5_forums_deleteTopic($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_edit {
function beta5_forums_edit($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_getLatest {
function beta5_forums_getLatest($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->mForums = $this->lib->game->getLib('main/forums');

View file

@ -2,7 +2,7 @@
class beta5_forums_getPost {
function beta5_forums_getPost($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->players = $this->lib->game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_forums_getPosts {
function beta5_forums_getPosts($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->players = $this->lib->game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_forums_getTopic {
function beta5_forums_getTopic($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_getTopics {
function beta5_forums_getTopics($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->players = $this->lib->game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_forums_moveTopic {
function beta5_forums_moveTopic($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_newTopic {
function beta5_forums_newTopic($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_reply {
function beta5_forums_reply($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_forums_searchPosts {
function beta5_forums_searchPosts($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->mForums = $this->lib->game->getLib('main/forums');

View file

@ -2,7 +2,7 @@
class beta5_forums_searchTopics {
function beta5_forums_searchTopics($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->mForums = $this->lib->game->getLib('main/forums');

View file

@ -2,7 +2,7 @@
class beta5_forums_updateLast {
function beta5_forums_updateLast($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_leaveGame {
function beta5_leaveGame($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->game = $lib->game;
$this->db = $this->lib->game->db;

View file

@ -2,7 +2,7 @@
class beta5_leaveVacation {
function beta5_leaveVacation($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_listing {
function beta5_listing($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_startVacation {
function beta5_startVacation($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -11,7 +11,7 @@ class beta5_moving_library {
'stop'
);
function beta5_moving_library($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_moving_cloneObject {
function beta5_moving_cloneObject($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->standby = $this->lib->game->getLib('beta5/standby');

View file

@ -3,7 +3,7 @@
class beta5_moving_computeTrajectory {
var $trajCache = null;
function beta5_moving_computeTrajectory($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->planets = $this->lib->game->getLib('beta5/planet');

View file

@ -2,7 +2,7 @@
class beta5_moving_getLocation {
function beta5_moving_getLocation($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_moving_getTrajectory {
function beta5_moving_getTrajectory($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_moving_newObject {
function beta5_moving_newObject($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_moving_redirect {
function beta5_moving_redirect($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_moving_stop {
function beta5_moving_stop($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_msg_get {
function beta5_msg_get($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_msg_getHeaders {
function beta5_msg_getHeaders($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_msg_send {
function beta5_msg_send($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_msg_sendInAlliance {
function beta5_msg_sendInAlliance($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->players = $this->lib->game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_msg_sendToPlanet {
function beta5_msg_sendToPlanet($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->planets = $this->lib->game->getLib('beta5/planet');

View file

@ -2,7 +2,7 @@
class beta5_msg_sendToPlayer {
function beta5_msg_sendToPlayer($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class msgformat_abandon {
function msgformat_abandon($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_alint {
function msgformat_alint($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_alliance {
function msgformat_alliance($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -4,7 +4,7 @@ class msgformat_battle {
var $sfn = array('gaships','fighters','cruisers','bcruisers');
var $sdn = array('GA Ships','Fighters','Cruisers','Battle Cruisers');
function msgformat_battle($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_bid {
function msgformat_bid($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_cash {
function msgformat_cash($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -6,7 +6,7 @@ class msgformat_flmove {
var $fmData = null;
var $fmId = null;
function msgformat_flmove($game) {
function __construct($game) {
$this->game = $game;
$this->db = $game->db;
$this->players = $game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class msgformat_flswitch {
function msgformat_flswitch($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -4,7 +4,7 @@ class msgformat_hsloss {
var $compn = array('G.A. ship', 'G.A. ships', 'fighter', 'fighters', 'cruiser', 'cruisers', 'batlle cruiser', 'battle cruisers');
var $compi = array('gaships', 'fighters', 'cruisers', 'bcruisers');
function msgformat_hsloss($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_kfleet {
function msgformat_kfleet($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_kimpr {
function msgformat_kimpr($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_leave {
function msgformat_leave($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_ownerch {
function msgformat_ownerch($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_planet {
function msgformat_planet($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
$this->planets = $game->getLib('beta5/planet');

View file

@ -2,7 +2,7 @@
class msgformat_plsc {
function msgformat_plsc($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_rename {
function msgformat_rename($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_resdipl {
function msgformat_resdipl($game) {
function __construct($game) {
$this->game = $game;
$this->db = $game->db;
$this->players = $game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class msgformat_revdmg {
function msgformat_revdmg($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_revolt {
function msgformat_revolt($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_sale {
function msgformat_sale($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_std {
function msgformat_std($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -2,7 +2,7 @@
class msgformat_warnname {
function msgformat_warnname($game) {
function __construct($game) {
$this->game = $game;
$this->players = $game->getLib('beta5/player');
}

View file

@ -4,7 +4,7 @@ class msgformat_whsn {
var $compn = array('G.A. ship', 'G.A. ships', 'fighter', 'fighters', 'cruiser', 'cruisers', 'batlle cruiser', 'battle cruisers');
var $compi = array('gaships', 'fighters', 'cruisers', 'bcruisers');
function msgformat_whsn($game) {
function __construct($game) {
$this->game = $game;
$this->db = $game->getDBAccess();
$this->players = $game->getLib('beta5/player');

View file

@ -2,7 +2,7 @@
class beta5_planet_buildFactories {
function beta5_planet_buildFactories($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_planet_checkBuildFactories {
function beta5_planet_checkBuildFactories($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->game = $this->lib->game;
$this->db = $this->game->db;

View file

@ -2,7 +2,7 @@
class beta5_planet_checkDestroyFactories {
function beta5_planet_checkDestroyFactories($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->game = $this->lib->game;
$this->db = $this->game->db;

View file

@ -2,7 +2,7 @@
class beta5_planet_destroyTurrets {
function beta5_planet_destroyTurrets($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->game = $this->lib->game;
$this->db = $this->game->db;

View file

@ -3,7 +3,7 @@
class beta5_planet_getPower {
var $ePower = array();
function beta5_planet_getPower($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->rules = $this->lib->game->getLib('beta5/rules');

View file

@ -2,7 +2,7 @@
class beta5_planet_ownerChange {
function beta5_planet_ownerChange($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $lib->game->db;
$this->bq = $lib->game->getLib('beta5/bq');

View file

@ -2,7 +2,7 @@
class beta5_planet_rename {
function beta5_planet_rename($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
}

View file

@ -2,7 +2,7 @@
class beta5_planet_updateMilStatus {
function beta5_planet_updateMilStatus($lib) {
function __construct($lib) {
$this->lib = $lib;
$this->db = $this->lib->game->db;
$this->ecm = $this->lib->game->getLib('beta5/ecm');

Some files were not shown because too many files have changed in this diff Show more