summaryrefslogtreecommitdiff
path: root/stats.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-25 17:30:58 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-25 17:31:09 +0200
commit8386ae0e63313ffc5d0fefebda8451d982679e01 (patch)
treeaac4a1295717a10cfa30bd44f31810da177df8e4 /stats.py
parent96ab1a8f44caf4f90148842fd826a8698ce144c5 (diff)
process.frame() in stats.py, no functional changes
Diffstat (limited to 'stats.py')
-rw-r--r--stats.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/stats.py b/stats.py
index f850339..9a745ab 100644
--- a/stats.py
+++ b/stats.py
@@ -1,7 +1,8 @@
import time
class Stats:
- def __init__(self):
+ def __init__(self,c):
+ self.c = c
self.min_mass = 0
self.max_mass = 0
self.current_mass = 0
@@ -33,4 +34,8 @@ class Stats:
self.cell_defensiveness[cell] = value
def get_last_steps(self, list, steps = 10):
- return list[-steps:] \ No newline at end of file
+ return list[-steps:]
+
+ def process_frame(self):
+ self.log_pos(self.c.player.center)
+ self.log_mass(self.c.player.total_mass)