Merge branch 'master' into 'master'
Bugfixes, added methods and a lot better docs Bugs fixed: * building placement when you want some spacing now works * the correct constructor for unittype is called when calling from python * unit.target doesn't crash the debugger anymore when a target is missing * unit.is_training is not just the opposite to is_idle. Added to make sure unit is a building too. * fixed problem with all minerals being empty on all other baselocations than starting base * debug spawning of units now spaws for the correct player * added more types of geysers to isGeyser same for minerals and made sure refinieries have isRefinery on those geysers * drawLine was not working, terrainHeight was messing things up. -------------- Added: * map_tools.map_name to get the name of the current map * draw_tile to draw outline of a tile * Point2DI and Point2D can now be hashed to be stored in python dicts and sets * Conversion between Point2D and Point2DI and the other way around made easy with new constructors * UnitType.attack_damage added to show base attackdamage of an unit * Unit.progression_list to get the entire list of percentages of current processes. Can be used to see if the unit has a reactor * UnitType.can_attack_air and .can_attack_ground to check if the unittype can attack or not. * building_placer.can_build_here_with_size takes coordinates and width and height to check if it can be buildt at the position. Addons can have weird sizes so this can be used to do checks regarding those. -------------- Random: * More or less everything in the API has got a comment in the documentaion and changed some comments to avoid confusions * Most of the comments are moved from the .rst files and into the .cpp instead in order to see the documentation with intellisense and autogenerate it for the docs instead. * Maptools docs doesn't appear two times. See merge request !11
No related branches found
No related tags found
Showing
- create-visual-studio-solution-python38.sh 0 additions, 1 deletioncreate-visual-studio-solution-python38.sh
- create-visual-studio-solution-python39.sh 5 additions, 0 deletionscreate-visual-studio-solution-python39.sh
- docs/coordinates.rst 8 additions, 1 deletiondocs/coordinates.rst
- docs/helpers.rst 9 additions, 45 deletionsdocs/helpers.rst
- docs/idabot.rst 38 additions, 130 deletionsdocs/idabot.rst
- docs/unit.rst 8 additions, 57 deletionsdocs/unit.rst
- python-api-src/lib_base_location.cpp 11 additions, 11 deletionspython-api-src/lib_base_location.cpp
- python-api-src/lib_building_placer.cpp 3 additions, 2 deletionspython-api-src/lib_building_placer.cpp
- python-api-src/lib_map_tools.cpp 24 additions, 22 deletionspython-api-src/lib_map_tools.cpp
- python-api-src/lib_point.cpp 20 additions, 1 deletionpython-api-src/lib_point.cpp
- python-api-src/lib_unit.cpp 42 additions, 40 deletionspython-api-src/lib_unit.cpp
- python-api-src/lib_unittype.cpp 37 additions, 32 deletionspython-api-src/lib_unittype.cpp
- python-api-src/library.cpp 22 additions, 22 deletionspython-api-src/library.cpp
- src/BaseLocation.cpp 8 additions, 0 deletionssrc/BaseLocation.cpp
- src/BaseLocation.h 2 additions, 0 deletionssrc/BaseLocation.h
- src/BaseLocationManager.cpp 32 additions, 1 deletionsrc/BaseLocationManager.cpp
- src/BaseLocationManager.h 5 additions, 0 deletionssrc/BaseLocationManager.h
- src/BuildingPlacer.cpp 75 additions, 3 deletionssrc/BuildingPlacer.cpp
- src/BuildingPlacer.h 4 additions, 0 deletionssrc/BuildingPlacer.h
- src/IDABot.cpp 23 additions, 1 deletionsrc/IDABot.cpp
Loading
Please register or sign in to comment