Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Entity:
- def __init__(self, name = "Generic Entity", health = 10, attack = 1, defense = 0):
- self.name = name
- self.health = health
- self.attack = attack
- self.defense = defense
- def isAlive(self):
- return self.health > 0
Add Comment
Please, Sign In to add comment