Lines Matching refs:monster
97 monster = MyGame.Sample.Monster.Monster.GetRootAsMonster(buf, 0)
100 assert monster.Mana() == 150
101 assert monster.Hp() == 300
102 assert monster.Name() == 'Orc'
103 assert monster.Color() == MyGame.Sample.Color.Color().Red
104 assert monster.Pos().X() == 1.0
105 assert monster.Pos().Y() == 2.0
106 assert monster.Pos().Z() == 3.0
109 for i in xrange(monster.InventoryLength()):
110 assert monster.Inventory(i) == i
115 for i in xrange(monster.WeaponsLength()):
116 assert monster.Weapons(i).Name() == expected_weapon_names[i]
117 assert monster.Weapons(i).Damage() == expected_weapon_damages[i]
120 assert monster.EquippedType() == MyGame.Sample.Equipment.Equipment().Weapon
125 if monster.EquippedType() == MyGame.Sample.Equipment.Equipment().Weapon:
129 union_weapon.Init(monster.Equipped().Bytes, monster.Equipped().Pos)