* removed pol_distance/inrange* functions
replaced lastxyz with Pos4d
* replaced WorldIterator::InVisualRange with InMaxVisualRange returning
all objects in maximum update range. Adapted each caller, they now have
to check in_visual_range
Multis should now be send to clients with its footprint in mind.
added testscript for boat moving in/out of range
* removed non pos InRange/InBox functions
gamestate.update_range doesnt need to be a Vector, renamed
* corrected send_action_to_inrange
* replaced clip methods with general numeric type clamp function
* added Range2d constructor with radius
* splitted update_range. chr has now a los_size (how far can it see) and
an object has a visible_size (0 for objects 1/2 footprint for multis)
* use in_range instead of pol_distance
* corrected order of checks
* fixed warnings
* fixed visual size of multis
testclient added wornitems pkt support
added tests for los
* corechanges
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
- Process ids (pid) no longer start from 1 but from 0x01000000.
This should have no practical effect, but avoids collisions.
- Allow specifying an arbitrary Gump id in SendDialogGump()
Custom gump ids must be in the range 1-0xFFFFFF. If no gumpid
is given, the old behavior of using the pid will still be used
(so that this does not break backward compatibility).
It is now possible to organize the gumpids in a constants file
and have the same gump to always be sent with the same id. This
way the client will recognize it and, if the player moved it
last time, it will reposition it where the player liked it:
this should be a nice interface improvement.
It is now possible to implement the Virtues gump, since it needs
a pre-defined gumpid of 0x01CD to work.
- CloseGump() now accepts a gumpid instead of a pid. For scripts not
using custom gump ids, its behavior is the same as before.
- Fixed handling of very small gump menu selection packets (only
15 bytes long)