diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-06-18 05:39:27 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-06-18 05:39:27 (GMT) |
commit | e4876558ad84db8431f9eece6b0673ab218b05fe (patch) | |
tree | ab23b74fa371057abd2507ea78773165cadb7f00 /src/api/Points.py | |
parent | 8878de606bbfe4d5a795cba3bd7ddb857bf89abd (diff) |
makes useful functions in Points api
Diffstat (limited to 'src/api/Points.py')
-rw-r--r-- | src/api/Points.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/api/Points.py b/src/api/Points.py index 0cd8d21..2424709 100644 --- a/src/api/Points.py +++ b/src/api/Points.py @@ -19,10 +19,24 @@ class CPoints(CSprite): def set_goods(self, aGoods): self.mGoods = aGoods self.createImage() - + def set_bads(self, aBads): self.mBads = aBads self.createImage() + + def increase_goods(self): + self.mGoods = self.mGoods + 1 + self.createImage() + + def increase_bads(self): + self.mBads = self.mBads + 1 + self.createImage() + + def get_goods(self): + return self.mGoods + + def get_bads(self): + return self.mBads def createImage(self): self.loadImage('assets/images/points.png') |