Esempio n. 1
0
*/
// -- COLLECT SETTINGS DATA -- //
// Define the editor indexes and count variables
$allowed_edit_players = array();
$allowed_edit_robots = array();
$allowed_edit_data = array();
$allowed_edit_data_count = 0;
$allowed_edit_player_count = 0;
$allowed_edit_robot_count = 0;
// Collect the player's robot favourites
$player_robot_favourites = rpg_game::robot_favourites();
if (empty($player_robot_favourites)) {
    $player_robot_favourites = array();
}
// Collect the player's robot database
$player_robot_database = rpg_game::robot_database();
if (empty($player_robot_database)) {
    $player_robot_database = array();
}
// Include the functions file for the editor
require 'robots_functions.php';
// Manually refresh all the editor arrays
refresh_editor_arrays();
// -- PROCESS PLAYER ACTION -- //
// Check if an action request has been sent with an player type
if (!empty($_REQUEST['action']) && $_REQUEST['action'] == 'player') {
    require 'robots_action-player.php';
}
// -- PROCESS ABILITY ACTION -- //
// Check if an action request has been sent with an ability type
if (!empty($_REQUEST['action']) && $_REQUEST['action'] == 'ability') {