Mercurial > sypikslang
comparison gamelib/game_base.py @ 46:d3d277a42ac6
Less getattr/isinstance silliness.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Mon, 07 May 2012 21:07:48 +0200 |
parents | 1e8f7e694f0c |
children | 3e3bed2ce248 |
comparison
equal
deleted
inserted
replaced
45:1e8f7e694f0c | 46:d3d277a42ac6 |
---|---|
22 def spend_point(self): | 22 def spend_point(self): |
23 self.points += 1 | 23 self.points += 1 |
24 | 24 |
25 def can_spend(self, lab): | 25 def can_spend(self, lab): |
26 return True | 26 return True |
27 | |
28 @classmethod | |
29 def save_name(cls): | |
30 return "%s.%s" % (cls.SCIENCE_TYPE, cls.__name__) |