Commit graph

16 commits

Author SHA1 Message Date
turleypol
21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00
Kevin Eady
e5209a51ff
Add support for boat piloting via mouse movement (#558)
* Initial work on boat piloting changes
- Changed: Boat script is now registered as the boat's control script
- Added: Boat piloting via mouse movement
- Added: boatRef.pilot member
- Added: boatRef.pilot([charRef]) method

* add first test

* Fix boat control script attach on scripted create

* move boat move packet warnings to suspicious acts

* set pilot now errors when mutli has no process

* Add test, testclient support for boat move packet

* Touchup pilot members and methods
- Change `pilot` method to `setpilot`. This standarizes it a bit with
the same naming convention of `npc.setmaster`.
- Fix return values in `pilot` member, returning `0` if no pilot.

* Refactor to put functionality inside UBoat

* Address Discord comments
- Remove SuspecisionActs for no boat process.
- Add `relative_direction` to boat move sysevent.

* destroy boatmount on chr death; more error checks

* Fix compilation after master merge

* Fix relative_direction calculation

* wip tests

* Fix boat tests

* Address review comments
- Initialize UBoat::mountpiece

* Add HSA check to boat.setpilot

* Reject movement if boat mountpiece equipped

* docs; test cleanup

* add test for blocked movement

* Address Discord review comments
- Add suspicious acts notice for client movement while piloting
- Return error on attempting to script move a char that is piloting a boat

* Fix compiler warning
2024-01-06 18:01:31 +07:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turley
189cad3479 Formating everything
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!
2016-02-19 19:26:35 +01:00
turley
ed7b16b233 normalized lineendings 2016-02-11 22:54:43 +01:00
Gabriele Tozzi
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01:00
Gabriele Tozzi
6a39ba6fe5 Added: Intrinsic Shield support, works just like intrinsic weapons
Implemented by moving the "intrinsic" concept from Weapon to Equipment
2015-10-02 21:30:14 +02:00
turley
79dff37246 Splitted gamestate external. 2015-01-02 14:46:44 +01:00
turley
88ec380941 Moved globals into separate directory. 2014-12-30 15:20:59 +01:00
turley
2737393f2a Tried to put all global vars into centralized structures.
Currently plib/systemstate, pol/uvars, pol/ucfg, pol/multi/multidef

Next step should be to split them based on usage, since its currently a bit of include hell...
2014-12-30 14:14:41 +01:00
frozenblit
ecb13b694d Never-ending cleanup 2014-11-02 00:20:20 +01:00
turley
31ee263a45 activated new logging facility 2014-01-18 13:29:38 +00:00
turley
99d7dc3037 namespaces...finally :)
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
dsourc
115dd48f06 Changed: objtype vectors changed to maps to only reserve as much memory as there are itemdesc entries, not reserving memory for up to 4 billions of objtypes.
Removed: limit from pol.cfg MaxObjtype now supports again up to max value of unsigned int ( 0xFFFFFFFF )
Fixed extobj.cfg defaults
2011-12-14 15:52:00 +00:00
dsourc
13a4ff3b44 Support for HSA botes ( no smooth move yet, but now all boats are usable ) 2011-12-13 16:41:34 +00:00
dsourc
cf2dbb367c 11-12-2011 Tomi:
Added:	 Pol/config/extobj.cfg
		 Values it accept now and default values are
			Tillerman=0xF010
			Port_Plank=0xF011
			Starboard_Plank=0xF012
			Hold=0xF013
			Wrestling=0xF020
			Mount=0xF021
			Secure_Trade_Container=0xFF01
			Wornitems_Container=0xFF02
	Note:	 These values HAVE TO BE > pol.cfg max_tile_id and the same as objtype for them in itemdescs
	Changed: uoconvert now adds to multis 0x1000 to the ID
	Note:	 boats.cfg uses the same value as multis.cfg and itemdesc graphic entry for multis have to be the same.
		 itemdesc entries for multis need to have the entry MultiID for updating multis ( you can find values using UOFiddler )
	Added:	 UOExpansion HSA server sends now 0x387DF
2011-11-12 20:33:08 +00:00