Exemplo n.º 1
0
def do():
	# Clear all movement range markers
	marker.clearMoveMarkers()
	
	sceneControl.show('commandSelect')
	sceneControl.hide('battlefieldOverlay', 'basicInfo')
	sceneControl.suspend('battlefield') # Battlefield is still visible
Exemplo n.º 2
0
def fromUnitMoving():
	logic.globalDict['cursor'] = 'selecting'
	logic.globalDict['actor'] = None
	logic.globalDict['extent'] = 0
	logic.globalDict['commandChoices'] = []
	
	# NOTE(kgeffen) Clear because movement range markers added when unit is reselected
	marker.clearMoveMarkers()
Exemplo n.º 3
0
def do(position):
	unit = logic.globalDict['actor']

	# Remove markers which display unit's range of motion
	marker.clearMoveMarkers()
	
	# Store move in undoList
	# NOTE(kgeffen) Must happen before stats are adjusted (particularly mv)
	storeMove(unit)

	unitControl.move.toSpace(unit, position)
	adjustUnitStats(unit, position)
	
	# Select current unit again
	selectUnit.attempt(position)