Lines Matching refs:monster
90 monster := sample.GetRootAsMonster(buf, 0)
94 assert(monster.Mana() == 150, "`monster.Mana()`", strconv.Itoa(int(monster.Mana())), "150")
95 assert(monster.Hp() == 300, "`monster.Hp()`", strconv.Itoa(int(monster.Hp())), "300")
96 assert(string(monster.Name()) == "Orc", "`string(monster.Name())`", string(monster.Name()),
98 assert(monster.Color() == sample.ColorRed, "`monster.Color()`",
99 strconv.Itoa(int(monster.Color())), strconv.Itoa(int(sample.ColorRed)))
105 assert(monster.Pos(nil).X() == 1.0, "`monster.Pos(nil).X()`",
106 strconv.FormatFloat(float64(monster.Pos(nil).X()), 'f', 1, 32), "1.0")
107 assert(monster.Pos(nil).Y() == 2.0, "`monster.Pos(nil).Y()`",
108 strconv.FormatFloat(float64(monster.Pos(nil).Y()), 'f', 1, 32), "2.0")
109 assert(monster.Pos(nil).Z() == 3.0, "`monster.Pos(nil).Z()`",
110 strconv.FormatFloat(float64(monster.Pos(nil).Z()), 'f', 1, 32), "3.0")
115 for i := 0; i < monster.InventoryLength(); i++ {
116 assert(monster.Inventory(i) == byte(i), "`monster.Inventory(i)`",
117 strconv.Itoa(int(monster.Inventory(i))), strconv.Itoa(int(byte(i))))
124 for i := 0; i < monster.WeaponsLength(); i++ {
125 if monster.Weapons(weapon, i) {
136 assert(monster.EquippedType() == sample.EquipmentWeapon, "`monster.EquippedType()`",
137 strconv.Itoa(int(monster.EquippedType())), strconv.Itoa(int(sample.EquipmentWeapon)))
140 if monster.Equipped(unionTable) {
145 if monster.EquippedType() == sample.EquipmentWeapon {