コード例 #1
0
ファイル: Weapon.php プロジェクト: riki343/game1
 public function getInArray()
 {
     return array('id' => $this->id, 'name' => $this->name, 'agilityBonus' => $this->agilityBonus, 'cost' => $this->cost, 'intelligenceBonus' => $this->intelligenceBonus, 'magicAttackBonus' => $this->magicAttackBonus, 'model' => $this->model->getInArray(), 'modelID' => $this->modelID, 'physicAttackBonus' => $this->physicAttackBonus, 'strengthBonus' => $this->strengthBonus, 'typeID' => $this->typeID);
 }
コード例 #2
0
ファイル: NPC.php プロジェクト: riki343/game1
 public function getInArray()
 {
     return array('id' => $this->id, 'name' => $this->name, 'modelID' => $this->modelID, 'model' => $this->model->getInArray(), 'locationID' => $this->locationID, 'location' => $this->location, 'bagID' => $this->bagID, 'bag' => $this->bag->getInArray(), 'immortal' => $this->immortal, 'locationPoint' => $this->locationPoint, 'typeID' => $this->typeID);
 }
コード例 #3
0
ファイル: Item.php プロジェクト: riki343/game1
 public function getInArray()
 {
     return array('id' => $this->id, 'name' => $this->name, 'cost' => $this->cost, 'model' => $this->model->getInArray(), 'modelID' => $this->modelID, 'questItem' => $this->questItem);
 }
コード例 #4
0
ファイル: Monster.php プロジェクト: riki343/game1
 public function getInArray()
 {
     return array('id' => $this->id, 'name' => $this->name, 'modelID' => $this->modelID, 'model' => $this->model->getInArray(), 'agility' => $this->agility, 'energyRegeneration' => $this->energyRegeneration, 'fractionID' => $this->fractionID, 'fraction' => $this->fraction->getInArray(), 'hp' => $this->hp, 'strength' => $this->strength, 'typeID' => $this->typeID, 'hpRegeneration' => $this->hpRegeneration, 'intelligence' => $this->intelligence, 'level' => $this->level, 'location' => $this->location->getInArray(), 'locationID' => $this->locationID, 'mpRegeneration' => $this->mpRegeneration, 'mp' => $this->mp);
 }
コード例 #5
0
ファイル: Decoration.php プロジェクト: riki343/game1
 public function getInArray()
 {
     return array('id' => $this->id, 'name' => $this->name, 'destroyable' => $this->destroyable, 'height' => $this->height, 'width' => $this->width, 'location' => $this->location->getInArray(), 'locationID' => $this->locationID, 'model' => $this->model->getInArray(), 'modelID' => $this->modelID);
 }