Lines Matching refs:Weapon
31 MyGame.Sample.Weapon.startWeapon(builder);
32 MyGame.Sample.Weapon.addName(builder, weaponOne);
33 MyGame.Sample.Weapon.addDamage(builder, 3);
34 var sword = MyGame.Sample.Weapon.endWeapon(builder);
36 MyGame.Sample.Weapon.startWeapon(builder);
37 MyGame.Sample.Weapon.addName(builder, weaponTwo);
38 MyGame.Sample.Weapon.addDamage(builder, 5);
39 var axe = MyGame.Sample.Weapon.endWeapon(builder);
59 MyGame.Sample.Monster.addEquippedType(builder, MyGame.Sample.Equipment.Weapon);
99 assert.equal(monster.equippedType(), MyGame.Sample.Equipment.Weapon);
100 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).name(), 'Axe');
101 assert.equal(monster.equipped(new MyGame.Sample.Weapon()).damage(), 5);