Exemplo n.º 1
0
    def test_game_time(self):
        time = TimePrototype.get_current_time()
        self.assertEqual(time.game_time, GameTime(0, 1, 1, 0, 0, 0))

        time.increment_turn()
        self.assertEqual(time.game_time, GameTime(0, 1, 1, 0, 2, 0))
Exemplo n.º 2
0
    def updated_at_game_time(self): return GameTime(*f.turns_to_game_time(self.updated_at_turn))

    @property
Exemplo n.º 3
0
 def updated_at_game_time(self):
     return GameTime(*f.turns_to_game_time(self._model.updated_at_turn))