summaryrefslogtreecommitdiff
path: root/src/localplayer.h
AgeCommit message (Collapse)AuthorFilesLines
2009-03-05Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer1-2/+2
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
2009-02-20Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-0/+5
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
2009-02-16Don't arbitrarily unset player target on NPC deletionBjørn Lindeijer1-2/+6
When an NPC got deleted it would reset the player target. I'm assuming what was meant was to reset the target when the deleted NPC was the target.
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Simplified target drawing so that it actually uses the SimpleAnimationIra Rice1-16/+7
that it creates when initializing the target cursors in the first place. This behavior was carried over in the first place from the Viewport class. Also moved target drawing responsibility from the map to the being being targeted in the first place. This allows for assuring that targets are always drawn below the sprite being targeted (which the previous solution was designed to do, but didn't do correctly). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-07Some more include cleanups.Ira Rice1-2/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Moved mEquipment to the LocalPlayer class, since it's the only placeIra Rice1-0/+3
that uses it anyways. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-09Removed an unneccessary functionIra Rice1-2/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-09Added the ability to see your own name in game.Ira Rice1-9/+23
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-07Added some initialization and removed ChargeDialogIra Rice1-1/+1
Many member variables of LocalPlayer were not being initialized properly. In general this shouldn't have caused any problems, but it's bad style. The ChargeDialog was removed. This class was long dead anyway. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl> Conflicts: src/Makefile.am src/game.cpp src/gui/chargedialog.cpp src/gui/chargedialog.h src/localplayer.cpp src/localplayer.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-29Imported patch that Fate made on TMW which which changes the item Ira Rice1-1/+1
container to guarantee that the inventory window always reports what the player has correctly, getting rid of the stale item references that could occur from time to time.
2008-11-23Corrected a misreporting of the number of available slots. In the Ira Rice1-1/+1
future, this should be de-hardcoded and obtained from the server instead.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-2/+0
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-10-28Fixed attacking so that it will actually continue to attack in Ira Rice1-0/+2
succession like it's intended to if it's given a true keep flag, or just do one attack if that flag isn't set. Since most people seem to prefer to continue to attack when attacking, shift will be used for when someone only wants to hit the target once.
2008-10-27Made targets draw on the fringe layer, as well as added t for talking to Ira Rice1-0/+1
an NPC, n for targeting an NPC, and changed basic targeting code so that it'll time out after being on a target for longer than a minute.
2008-10-27Merged the Tametomo branch back into trunk. Targeting has been removed Ira Rice1-0/+25
from the viewport, and is now located on the beings themselves. Eventually, this will be changed further so that the targets draw below the being, instead of maintaining the same logic, but baby steps first.
2008-09-25Merged the Tametomo branch into trunk.Ira Rice1-1/+1
2008-09-12Fixed /where, added /cast for heal and gather, some changes to inventory to ↵Lloyd Bryant1-0/+16
support storage
2008-07-18Import of client treeLloyd Bryant1-9/+4
2008-06-12Merged revisions 3738 via svnmerge from Bjørn Lindeijer1-12/+4
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3738 | b_lindeijer | 2007-11-16 00:44:01 +0100 (Fri, 16 Nov 2007) | 3 lines Moved item icon from ItemInfo class to the Item class, so that it can be loaded on demand. Results in faster startup time and reduced memory usage. ........
2008-04-11 Players now need toDavid Athay1-0/+11
click on the monster sprites rather than the tile. Players will now move to the target before attacking it.
2007-12-21Fixed inventory size not matching the size assumed by eAthena and relatedBjørn Lindeijer1-3/+1
memory corruption and increased default chat log length.
2007-11-20Merged revisions 3692 via svnmerge from Bjørn Lindeijer1-1/+1
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3692 | gmelquio | 2007-10-27 11:03:13 +0200 (Sat, 27 Oct 2007) | 1 line Made it compile with GCC 4.3 ........
2007-11-20Merged revisions 3629-3630 via svnmerge from Bjørn Lindeijer1-2/+0
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk (but kept looks in Being class, since eAthena works that way) ........ r3629 | gmelquio | 2007-10-18 21:00:38 +0200 (Thu, 18 Oct 2007) | 1 line Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items. ........ r3630 | gmelquio | 2007-10-18 21:30:57 +0200 (Thu, 18 Oct 2007) | 1 line Fixed changelog message. ........
2007-08-23Changed XP gaining effect to appear on the player instead.Bjørn Lindeijer1-4/+11
2007-08-21mantis id=118 - Added Item Shortcut Bar.Joshua Langley1-0/+8
2007-08-20Added monster killed xp notification effect.Joshua Langley1-3/+9
2007-03-19Added target cursor. Shows blue when target in range, and red when out of range.David Athay1-0/+12
2007-02-20Now different sounds can play when a monster misses the player.Bjørn Lindeijer1-1/+16
2006-12-16Fixed connection dialog visibility and fixed issues with walking one tile tooBjørn Lindeijer1-3/+14
many and changing direction towards an obstacle.
2006-12-11Fixed visibility of the update window.Bjørn Lindeijer1-2/+2
2006-11-19Separated sprite definition from playback.Bjørn Lindeijer1-1/+9
2006-09-02Applied patch by Bernard Lidicky, adding targetting nearest monster with eitherBjørn Lindeijer1-1/+6
keyboard or mouse. Also made clicking beings in general a bit easier (patch applied by Bjørn Lindeijer).
2006-05-12You can now see the shirt when equipping a top equipment.Eugenio Favalli1-2/+0
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-12/+12
2006-03-09Use std::auto_ptr in some places.Björn Steinbrink1-2/+4
2006-02-07Made the being directions being stored in a bitfield.Björn Steinbrink1-1/+2
2006-02-06Use virtual methods instead of getType() checks.Björn Steinbrink1-0/+6
2006-02-05Made the player walk to items prior to picking them up.Björn Steinbrink1-0/+2
2006-02-04Unify the various login dialogs to use LoginData.Björn Steinbrink1-1/+1
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-0/+149