function __construct(&$World, $id, $type, $x, $y)
 {
     parent::__construct($World, $id, $type, $x, $y);
     //alert(1);
     $this->cS =& $this->World->SteepSize;
 }
Exemple #2
0
 function __construct(&$World, $id, &$type, &$x = 0, &$y = 0)
 {
     $this->w1_Pos = array($x * 2, $y * 2);
     $SS = $World->SteepSize;
     $x = 20 + $x * $SS + 1;
     $y = 20 + $y * $SS + 1;
     //echo $x.' '.$y;
     parent::__construct($World, $id, $type, $x, $y);
 }