Template project for DLL strategy.
This template is for the DLLAdapter project of the Simuro5v5 platform.
The new interface functions include:
-
void GetTeamInfo(TeamInfo* teaminfo)Used to specify strategy information, currently contains the team name field.
The parameter
TeamInfo* teaminfo** requires the strategy to populate its own information**, which will be returned to the platform. -
void GetInstruction(Field* field)Each beat in the game is called, ** requires a strategy to specify the wheel speed**, which is equivalent to the strategy of the old interface.
The parameter
Field* fieldis theIn/Outparameter, which stores the current field information and allows the strategy to modify its own wheel speed. -
void GetPlacement(Field* field)Called every time the auto-position is placed, ** requires a strategy to specify the placement information**.
The parameter
Field* fieldis theIn/Outparameter, which stores the current field information and allows the strategy to modify its position (and the position of the ball). -
void OnEvent(EventType type, void* argument)Called when an event occurs.
The parameter
EventType typeindicates the event type;The parameter
void* argumentindicates the argument to the event, or NULL if there is no argument.
The new match interface function accepts the parameter type Field, which contains the field information, similar to the Environment in the old interface, but gamestate and whosball are not saved in field. Because these variables only change at the beginning of the round and this information can be obtained from the OnEvent function.
Copyright (C) Northwestern Polytechnical University V5++ team. All rights reserved.