Browse Source

move class into simulation

Bastien Sevajol 6 years ago
parent
commit
2b1f8a5561
2 changed files with 17 additions and 16 deletions
  1. 1 16
      opencombat/gui/state.py
  2. 16 0
      opencombat/simulation/state.py

+ 1 - 16
opencombat/gui/state.py View File

1
 # coding: utf-8
1
 # coding: utf-8
2
-import typing
3
 
2
 
4
-from synergine2.simulation import SimulationBehaviour
5
-from synergine2.simulation import Event
6
 from synergine2.terminals import TerminalPackage
3
 from synergine2.terminals import TerminalPackage
7
 from synergine2_cocos2d.interaction import Interaction
4
 from synergine2_cocos2d.interaction import Interaction
8
 
5
 
6
+from opencombat.simulation.state import SaveStateSimulationAction
9
 from opencombat.user_action import UserAction
7
 from opencombat.user_action import UserAction
10
 
8
 
11
 
9
 
12
-class SaveStateSimulationAction(SimulationBehaviour):
13
-    def run(self, data):
14
-        pass
15
-
16
-    def action(self, data) -> typing.List[Event]:
17
-        # TODO BS 2018-06-14: dump state here
18
-        pass
19
-
20
-    @classmethod
21
-    def merge_data(cls, new_data, start_data=None):
22
-        pass
23
-
24
-
25
 class SaveStateInteraction(Interaction):
10
 class SaveStateInteraction(Interaction):
26
     gui_action = UserAction.SAVE_STATE
11
     gui_action = UserAction.SAVE_STATE
27
 
12
 

+ 16 - 0
opencombat/simulation/state.py View File

1
+import typing
2
+
3
+from synergine2.simulation import SimulationBehaviour, Event
4
+
5
+
6
+class SaveStateSimulationAction(SimulationBehaviour):
7
+    def run(self, data):
8
+        pass
9
+
10
+    def action(self, data) -> typing.List[Event]:
11
+        # TODO BS 2018-06-14: dump state here
12
+        pass
13
+
14
+    @classmethod
15
+    def merge_data(cls, new_data, start_data=None):
16
+        pass