Kevin Eady
12d6186d10
Script option enhancements ( #118 )
...
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES
* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT
* wip beginning work on templatization
* Use PolModule in pol-specific modules
* wip, creating PolModule with getXYZParam
* wip 1, moving getXYZ to UOExecutor
* compilable with PolObjectImp / PolApplicObj
* add type guard
* wip, change signatures
change signatures of script_method, script_method_id, and
custom_script_method
* compilable (windows)
* linux fixes
* namespace fixes
* remove uoexhelp
* formatting
* compilable
- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h
* finish uoexec() helper
* some cleanup
2020-02-08 09:21:35 +01:00
turleypol
7e8f92bc85
rewrote module function generation, maybe this works
2019-11-10 22:04:08 +01:00
Kevin Eady
ca850a0c76
project refactoring
2019-10-18 21:32:30 +02:00
Kevin Eady
5c0fb7c4ea
First support for .em-parsed module function tbls
...
- Create module parser custom target
- Include generated tables in .cpp sources
- Standardize module function names based off .em names
2019-10-17 22:37:26 +02:00
Kevin Eady
b55e852a5b
wip 1
2019-10-17 19:08:49 +02:00
turleypol
d0b74d6da6
added first docs, cleanup of first todos
2019-01-03 18:58:13 +01:00
turleypol
3257cda6ab
cleanup of cliloc unicode functions
2019-01-03 17:21:55 +01:00
turleypol
ac792d4c66
cleanup of party unicode code
2019-01-03 13:09:50 +01:00
turleypol
cc27bb611f
removed last usage of convertUCtoArray
2019-01-03 11:00:46 +01:00
turleypol
89fd3991ce
all unicode module functions ahould now accept both Arrays for backward
...
compatibility and (unicode)strings
2018-12-31 14:28:37 +01:00
turleypol
9cfb4ec5a5
moved pkt headers into network folder
2018-12-30 21:35:54 +01:00
turleypol
4f40aa7997
removed Clib::decint and used Clib::tostring, changed Clib::hexint to
...
template function for all integers
2018-10-28 09:31:58 +01:00
turleypol
892005f2b0
code simplification, deprecate warning for uoclient.cfg MethodScript
...
entry
2018-10-13 21:46:41 +02:00
turleypol
b33e5ad02d
party and guild ref support
...
docs and testing left?
2018-10-13 18:24:24 +02:00
turleypol
0a39af15a1
Changed classes to be final if possible, removed override macro
2018-10-09 09:47:27 +02:00
esdete
dc2d29b433
NULL to nullptr
2018-07-31 14:30:29 +02:00
turleypol
6107184258
only one global config include exists now
2018-06-17 18:31:55 +02: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
turleypol
ef2108c9f7
New objecttype Boolean.
...
create via basic::Boolean(1/0)
only == != ! operators are implemented.
2018-01-05 20:04:01 +01:00
turleypol
798eda5b63
Cleanup of header includes.
2018-01-01 21:52:14 +01:00
Fernando Rozenblit
eb34290222
Cleanup for modules' function tables
2017-01-24 21:57:16 +01:00
turley
f9c3db9e41
Modules share the same (helper) template base class
...
Optimize function name search for all modules not only uo by using an additional map, replaced c array with vector for functionsdef.
Simplified pragma pack order. (MSVC version is supported in all
compilers)
Removed compilerassert.h (asserteql,..) replaced with static_assert
Removed some old #ifs
2016-12-20 23:53:32 +01:00
turley
4d9aa75f3b
Corrected definition order in module defs
2016-12-14 21:50:23 +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
Gabriele Tozzi
d1ac902926
Documentation: reformatted headers for DoxyGen
2016-01-28 14:52:40 +01:00
Gabriele Tozzi
530790c8f8
Comparison operators refactor: better handle weird cases, cleaning
...
- obj.isLesserThan() and obj.ieEqual() are now replaced by < and ==
- Removed obsolete isLT(), isLE(), isGT(), isGE()
- Also implemented comparison operators for BObjectImp
- These operators may now be fully overriden in child classes
- Default implementations are derived from == and < operators
- As a general rule (that fit into "undefined" behavior":
-- Objects are == if having the same address
-- Objects are < based on their type ID, except of Error and Uninit
that always are < everything else.
-- Objects are supposed to implement their own < and fall back to
base class. If not implemented, as a last fallback, the object's
address in memory is used to do the comparison
- Added test case for comparison operators
2016-01-24 22:22:45 +01:00
turley
6de0c7e1c0
added define to use boost regex (older gcc has bug in std version)
...
added define for the git revision and centralized others
2016-01-19 21:04:40 +01:00
Gabriele Tozzi
45959b92d2
Small memory improvement: BObjectImp.type_ is now u8 instead of int
...
It is very unlikely to grow to more than 256 elements any time soon.
This should save 3 bytes for every single object that derived from it.
Also added explicit int conversions and a not, for better robustness.
2015-12-29 03:21:02 +01:00
turley
0d9d13bdb9
moved unicode from clib to pol
2015-09-19 10:55:48 +02:00
turley
da3e2291d0
Equipment has a fixed member for quality
...
Moved the 3 pointers for parties and the guild pointer into the dynprops.
2015-05-16 10:30:34 +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
turley
90f162924d
Added override keyword to virtual functions
2014-11-23 15:07:02 +01:00
frozenblit
943b820eba
More and more cleanups
...
Added some missing include guards, corrected wrong include guard names.
Removed more stl_inc.h includes.
2014-11-02 19:40:40 +01:00
turley
4227fae36d
fixed logoff of party leader with enabled RemoveMemberOnLogoff
...
fixed namespaces and debug build
some code cleanup
2013-12-28 09:51:37 +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
turley
4c7f70fc79
first version of a generic message_queue (currently not lockfree, need to test more)
...
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00
turley
6dbae04c16
codecleanup
2012-11-05 11:21:22 +00:00
turley
4e7e400254
64bit compilation..
2011-12-23 13:28:38 +00:00
turley
d32cec7d6c
Added: basic::TypeOfInt( expr ) + basic.em constants
...
returns like TypeOf() the type of given parameter, but returns instead of a string an integer (see basic.em constants)
since integer comparison are way faster then string comparison this function should always be used for comparisons
2011-03-12 10:51:10 +00:00
frozenblit
eb61009c6e
Fixed some possibilities of leaking if an exception was thrown and a few other warnings (all the rest, code analysis)
2010-07-10 20:02:50 +00:00
turley
8ad4da6ac5
Fixed: call of built-in method with ._methodname if overridden
...
Added: Multis now support method script
2009-12-21 13:52:18 +00:00
turley
7c54d3175f
gcc fixes, minor cleanup
2009-11-06 16:07:47 +00:00
turley
9fe2462833
splitted party and party module code
2009-09-08 11:08:59 +00:00