alibaba-archive / torchcraft-py

Python wrapper for TorchCraft. (In progress)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what kind of parameter should I send if I want to move unit rather than attack?

rocketfive opened this issue · comments

As in the example attack_weakest.py :
else:
for uid, ut in client.state.d['units_myself'].iteritems():
target = utils.get_weakest(client.state.d['units_enemy'])
if target != -1:
actions.append(
proto.concat_cmd(
proto.commands['command_unit_protected'], uid,
proto.unit_command_types['Attack_Unit'], target))

it append four parameters to actions and consequently send the action, if I want to move the unit to a position, excecpt changing ['Attack_Unit']to ['Move'], what else should I change ?