comparison gamelib/gamestate.py @ 99:531eb3239da2

Research points allocated based on milestone.
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 09 May 2012 22:13:15 +0200
parents 50f8476aa929
children 4a44d133ad2e
comparison
equal deleted inserted replaced
98:e386ec5d179b 99:531eb3239da2
3 3
4 """The actual game state object""" 4 """The actual game state object"""
5 5
6 from gamelib import missions, lab 6 from gamelib import missions, lab
7 from gamelib.game_base import get_subclasses 7 from gamelib.game_base import get_subclasses
8 from gamelib.constants import NEW_SCIENCE, NEW_SCHEMATIC 8 from gamelib.constants import NEW_SCIENCE, NEW_SCHEMATIC, M_VALS
9 9
10 10
11 class Game(object): 11 class Game(object):
12 12
13 def __init__(self, init_data=None): 13 def __init__(self, init_data=None):
31 for cls in get_subclasses(missions.Mission): 31 for cls in get_subclasses(missions.Mission):
32 self.missions.append(cls()) 32 self.missions.append(cls())
33 33
34 def start_turn(self): 34 def start_turn(self):
35 # Make more flexible? 35 # Make more flexible?
36 self.points += 3 36 self.points += 1 + M_VALS[self.milestone] * 2
37 self.turn += 1 37 self.turn += 1
38 self.cur_missions = [] 38 self.cur_missions = []
39 self.cur_allocation = [] 39 self.cur_allocation = []
40 40
41 def get_available_equipment(self): 41 def get_available_equipment(self):