Lines Matching refs:monster
100 $monster = \MyGame\Example\Monster::GetRootAsMonster($bb);
102 $assert->strictEqual($monster->GetHp(), 80);
103 $assert->strictEqual($monster->GetMana(), 150); // default
105 $assert->strictEqual($monster->GetName(), 'MyMonster');
107 $pos = $monster->GetPos();
118 $assert->strictEqual($monster->GetTestType(), \MyGame\Example\Any::Monster);
121 $assert->strictEqual($monster->GetTest($monster2) != null, true);
124 $assert->strictEqual($monster->GetInventoryLength(), 5);
126 for ($i = 0; $i < $monster->GetInventoryLength(); $i++) {
127 $invsum += $monster->GetInventory($i);
131 $assert->strictEqual(bin2hex($monster->GetInventoryBytes()), "0001020304");
133 $test_0 = $monster->GetTest4(0);
134 $test_1 = $monster->GetTest4(1);
135 $assert->strictEqual($monster->GetTest4Length(), 2);
138 $assert->strictEqual($monster->GetTestarrayofstringLength(), 2);
139 $assert->strictEqual($monster->GetTestarrayofstring(0), 'test1');
140 $assert->strictEqual($monster->GetTestarrayofstring(1), 'test2');
142 $fred = $monster->getEnemy();
145 $assert->strictEqual($monster->GetTestbool(), true);