function __construct($data = null, $arg = false, $scenario = false) { $this->areaData = AreaData::getInstance(); $this->mapData = $this->areaData; if ($data) { $this->force = new AreaForce($data->force); if (isset($data->terrain)) { $this->terrain = new AreaTerrain($data->terrain); } else { $this->terrain = new \stdClass(); } $this->combatRules = new CombatRules($this->force, $this->terrain, $data->combatRules); $this->moveRules = new AreaMoveRules($this->force, $this->terrain, $data->moveRules); $this->gameRules = new GameRules($this->moveRules, $this->combatRules, $this->force, $data->gameRules); $this->victory = new Victory($data); $this->players = $data->players; } else { $this->arg = $arg; $this->scenario = $scenario; $this->game = $game; // $this->display = new stdClass(); // $this->mapViewer = array(new MapViewer(), new MapViewer(), new MapViewer()); $this->force = new AreaForce(); $this->terrain = new AreaTerrain(); $this->moveRules = new AreaMoveRules($this->force, $this->terrain); $this->combatRules = new CombatRules($this->force, $this->terrain); $this->gameRules = new GameRules($this->moveRules, $this->combatRules, $this->force); } if ($data) { $this->specialHexA = $data->specialHexA; } else { // $this->victory = new Victory("Wargame\TMCW/Area1/area1VictoryCore.php"); // if ($scenario->supplyLen) { // $this->victory->setSupplyLen($scenario->supplyLen); // } // $this->moveRules = new MoveRules($this->force, $this->terrain); // if ($scenario && $scenario->supply === true) { // $this->moveRules->enterZoc = 2; // $this->moveRules->exitZoc = 1; // $this->moveRules->noZocZocOneHex = true; // } else { // $this->moveRules->enterZoc = "stop"; // $this->moveRules->exitZoc = 0; // $this->moveRules->noZocZocOneHex = false; // } // game data $this->gameRules->setMaxTurn(7); $this->gameRules->setInitialPhaseMode(RED_DEPLOY_PHASE, DEPLOY_MODE); $this->gameRules->attackingForceId = RED_FORCE; /* object oriented! */ $this->gameRules->defendingForceId = BLUE_FORCE; /* object oriented! */ $this->force->setAttackingForceId($this->gameRules->attackingForceId); /* so object oriented */ $this->gameRules->addPhaseChange(RED_DEPLOY_PHASE, BLUE_DEPLOY_PHASE, DEPLOY_MODE, BLUE_FORCE, RED_FORCE, false); $this->gameRules->addPhaseChange(BLUE_DEPLOY_PHASE, BLUE_MOVE_PHASE, MOVING_MODE, BLUE_FORCE, RED_FORCE, false); $this->gameRules->addPhaseChange(BLUE_MOVE_PHASE, BLUE_COMBAT_PHASE, COMBAT_SETUP_MODE, BLUE_FORCE, RED_FORCE, false); $this->gameRules->addPhaseChange(BLUE_COMBAT_PHASE, RED_MOVE_PHASE, MOVING_MODE, RED_FORCE, BLUE_FORCE, false); $this->gameRules->addPhaseChange(RED_MOVE_PHASE, RED_COMBAT_PHASE, COMBAT_SETUP_MODE, RED_FORCE, BLUE_FORCE, false); $this->gameRules->addPhaseChange(RED_COMBAT_PHASE, RED_MECH_PHASE, MOVING_MODE, RED_FORCE, BLUE_FORCE, false); $this->gameRules->addPhaseChange(RED_MECH_PHASE, BLUE_MOVE_PHASE, MOVING_MODE, BLUE_FORCE, RED_FORCE, true); } }
include "action/_people_.php"; } else { $action = $_GET['action']; if ($action != "jobs") { } else { include "action/_" . $action . "_.php"; } } ?> </div> <div class='span4 visible-mobile'> <div class='river-bg white just' style='padding:20px;'> <h4>Categorias</h4> <?php foreach (AreaData::getAll() as $area) { echo "<div class='belize-hole-bg' style='padding:3px;margin-top:2px;margin-left:2px;float:left;'>" . $area->name . "</div>"; } ?> <div class='clearfix'></div> </div> <br> <div class='river-bg white just' style='padding:20px;'> <p>Encuentra en <b>Yobup</b> excelentes oportunidades de trabajo, con los siguientes servicios : </p> <ul type="none"> <li><i class='icon-ok'></i> Bolsa de Trabajo</li> <li><i class='icon-ok'></i> Mensajeria</li> <li><i class='icon-ok'></i> Preguntas y Respuestas</li> </ul> </div> <br>