Esempio n. 1
0
from Bot import Bot
from SuperBot import SuperBot
from FlyingBot import FlyingBot

bot1 = Bot("Charlie", 10)
bot2 = SuperBot("Dave", 50, 100)
bot3 = FlyingBot("Bob", 30)

bot1.display_summary()
bot2.display_age()
bot3.get_hover_distance()





Esempio n. 2
0
bot1.display_age()
superbot1.display_age()
flyingbot1.display_age()
bot1.display_energy()
superbot1.display_energy()
bot1.display_shield()
superbot1.display_shield()
bot1.display_summary()
superbot1.display_summary()
flyingbot1.display_summary()
#print(bot1)
#print(superbot1)
#superbot1.get_super_power_level()
#print(super_power_level)
print(superbot1.get_super_power_level())
print(flyingbot1.get_hover_distance())
bot1.decrement_energy()
bot1.display_energy()
bot1.decrement_shield()
bot1.display_shield()
bot1.increment_energy()
bot1.display_energy()
bot1.increment_shield()
bot1.display_shield()
bot1.increment_age()
bot1.display_age()
print(bot1.get_age())
print(superbot1.get_age())
print(flyingbot1.get_age())
print(bot1.get_name())
print(superbot1.get_name())
Esempio n. 3
0
test = Bot("Botty")

test.get_age()
test.get_energy()
test.get_name()
test.get_shield()

test.decrement_energy()
test.decrement_shield()

test.display_name()
test.display_age()
test.display_energy()
test.display_shield_level()
test.display_summary()
print(test.__str__())

test.increment_age()
test.increment_energy()
test.increment_shield()

test.set_name()

super_bot = SuperBot("John")

super_bot.get_super_power_level(3000)
super_bot.set_super_power_level(3000)

flying_bot = FlyingBot("Joe", 30)
flying_bot.get_hover_distance()
flying_bot.set_hover_distance()