예제 #1
0
파일: main_frame.py 프로젝트: bogolt/dclord
	def on_cancel_action(self, evt):
		user_id, unit_id, cancel_action_id = evt.attr1
		if not cancel_action_id:
			# action is not send to server yet
			store.remove_object('action', {'unit_id':unit_id})
		else:
			self.actions.add_action(action.ActionCancel(user_id, cancel_action_id))
예제 #2
0
파일: action.py 프로젝트: bogolt/dclord
	def revert(self):
		store.remove_object('garrison_queue_unit', {'unit_id':self.fleet_id})
		self.fleet_id = None
예제 #3
0
파일: action.py 프로젝트: bogolt/dclord
	def perform(self):
		store.remove_object('garrison_queue_unit', {'unit_id':self.unit_id})
예제 #4
0
파일: action.py 프로젝트: bogolt/dclord
	def revert(self):
		store.remove_object('fleet', {'fleet_id':self.fleet_id})
		# maybe it already left the planet
		store.remove_object('flying_fleet', {'fleet_id':self.fleet_id})
예제 #5
0
파일: action.py 프로젝트: bogolt/dclord
	def perform(self):
		store.remove_object('action', {'cancel_id':self.action_id})
예제 #6
0
파일: action.py 프로젝트: bogolt/dclord
	def revert(self):
		store.remove_object('action', {'unit_id':self.unit_id})