xaviermontenegro

Untitled

Jul 17th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. class Entity:
  2.     def __init__(self, name = "Generic Entity", health = 10, attack = 1, defense = 0):
  3.         self.name = name
  4.         self.health = health
  5.         self.attack = attack
  6.         self.defense = defense
  7.  
  8.     def isAlive(self):
  9.         return self.health > 0
Add Comment
Please, Sign In to add comment