Ejemplo n.º 1
0
def do():
	# Clear markers
	marker.clearCommandMarkers()

	# Get spaces
	rangeSpaces = getRangeSpaces()
	aoeSpaces = getAoeSpaces()
	emptySpaces = getEmptySpaces()
	
	coveredSpaces = []
	
	# Add markers for each space, only if that space is uncovered
	for space in emptySpaces:
		marker.add(space, 'markerEmpty')
		coveredSpaces.append(space)

	for space in aoeSpaces:
		if space not in coveredSpaces:
			marker.add(space, 'markerAoe')
			coveredSpaces.append(space)

	for space in rangeSpaces:
		if space not in coveredSpaces:
			marker.add(space, 'markerRange')
			coveredSpaces.append(space)
Ejemplo n.º 2
0
def do():
	for move in logic.globalDict['validMove']:
		space = move['space']
		marker.add(space, 'markerMove')