Lines Matching refs:monster
78 $monster = \MyGame\Sample\Monster::GetRootAsMonster($buf);
83 $success &= assert($monster->getMana() == 150);
84 $success &= assert($monster->getHp() == 300);
85 $success &= assert($monster->getName() == "Orc");
86 $success &= assert($monster->getColor() == \MyGame\Sample\Color::Red);
87 $success &= assert($monster->getPos()->getX() == 1.0);
88 $success &= assert($monster->getPos()->getY() == 2.0);
89 $success &= assert($monster->getPos()->getZ() == 3.0);
92 for ($i = 0; $i < $monster->getInventoryLength(); $i++) {
93 $success &= assert($monster->getInventory($i) == $i);
99 for ($i = 0; $i < $monster->getWeaponsLength(); $i++) {
100 $success &= assert($monster->getWeapons($i)->getName() == $expected_weapon_names[$i]);
101 $success &= assert($monster->getWeapons($i)->getDamage() == $expected_weapon_damages[$i]);
105 $success &= assert($monster->getEquippedType() == \MyGame\Sample\Equipment::Weapon);
106 $success &= assert($monster->getEquipped(new \MyGame\Sample\Weapon())->getName() == "Axe");
107 $success &= assert($monster->getEquipped(new \MyGame\Sample\Weapon())->getDamage() == 5);