/**
  * creates the model
  *
  * @param $id_game int
  * @param $id_move int
  * @param $id_user int
  * @param $deleted boolean
  * @param $id_zarea_in_port int
  * @param $id_zarea int
  * @param $id_zunit int
  * @return ModelSetShipsMove
  */
 protected function __construct($id_user, $id_game, $id_move, $deleted, $id_zarea_in_port, $id_zarea, $id_zunit)
 {
     parent::__construct($id_user, $id_game, PHASE_SETSHIPS, $id_move, 0, $deleted);
     $this->id_zarea_in_port = (int) $id_zarea_in_port;
     $this->id_zarea = (int) $id_zarea;
     $this->id_zunit = (int) $id_zunit;
 }
예제 #2
0
 /**
  * creates the model
  *
  * @param $id_user int
  * @param $id_game int
  * @param $id_phase int
  * @param $id_move int
  * @param $round int
  * @param $deleted boolean
  * @param $steps array(int step_nr => int id_zarea)
  * @param $units array(int id_unit => count)
  * @return ModelLandMove
  */
 protected function __construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted, $steps, $units)
 {
     parent::__construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted);
     $this->steps = $steps;
     $this->units = $units;
 }
 /**
  * creates the model
  *
  * @param $id_game int
  * @param $id_move int
  * @param $id_user int
  * @param $id_phase int
  * @param $round int
  * @param $deleted boolean
  * @param $regions array
  * @return ModelSelectStartMove
  */
 protected function __construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted, $regions)
 {
     parent::__construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted);
     $this->regions = $regions;
 }
 /**
  * creates the model
  *
  * @param $id_user int
  * @param $id_game int
  * @param $id_phase int
  * @param $id_move int
  * @param $round int
  * @param $deleted boolean
  * @param $id_zarea int id_zarea
  * @param $units array(int id_unit => count)
  * @return ModelProductionMove
  */
 protected function __construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted, $id_zarea, $units)
 {
     parent::__construct($id_user, $id_game, $id_phase, $id_move, $round, $deleted);
     $this->id_zarea = $id_zarea;
     $this->units = $units;
 }