summaryrefslogtreecommitdiff
path: root/src/account-server/character.h
AgeCommit message (Collapse)AuthorFilesLines
2013-04-11Converted the Character class into a componentErik Schilling1-8/+23
A CharacterData was created as a proxy class in order to allow using the old serialization method.
2013-04-11Renamed Character -> CharacterData in the accountserverErik Schilling1-5/+5
2013-01-09Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer1-10/+10
Same thing, but shorter.
2012-04-04Enhanced special supportErik Schilling1-8/+23
- Made the current charge being saved. - Added script binds: - chr_set_special_recharge_speed - chr_get_special_recharge_speed - chr_set_special_mana - chr_get_special_mana - get_special_info - Added special info lua class. Functions: - name - needed_mana - rechargeable - on_use - on_recharged - category Further the engine no longer sets charge to 0 after using of specials this allows more flexbilillity (like failing specials). Changes on the xml database: - recharge renamed to rechargeable (needed by client and server) - needed - the needed mana to trigger a special (server only) - rechargespeed - the defailt recharge speed in mana per tick (server only) - target - the type of target (either being or point) (server and client) I also made the lua engine pushing nil instead of a 0 light userdata when the pointer was 0. Database update needed. Change is tested. Mana-Mantis: #167, #156 Reviewed-by: bjorn.
2011-03-20Moved defines.h and manaserv_protocol.h into 'common'Thorbjørn Lindeijer1-1/+1
Just seems a bit more organized to me.
2011-03-15Introduced an AttributeValue class for convenience and readabilityThorbjørn Lindeijer1-12/+24
Easier to understand than a std::pair with its 'first' and 'second' members, and it also provides an implicit constructor so that AttributeValue is implicitly constructed from a double. Reviewed-by: Freeyorp
2011-01-09Removed the superfluous point struct.Yohann Ferreira1-1/+1
It was too close from the Position class and it leads to making the server handle one or another type through the code. Still bugged me many times while making changes. Reviewed-by: Jaxad.
2010-12-29Made the server handle properly the characters slots.Yohann Ferreira1-1/+11
I turned the vector storing character data into a map, keeping the character's slot. Fixed a memleak along the way. Reviewed-by: Crush.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+275
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.