summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-02-09Merged with Aethyra master as of 2009-01-27Bjørn Lindeijer1-19/+222
Conflicts: Almost everywhere.
2009-01-24Tweaks to the speech bubbles so that being status (GM, mob, npc,Ira Rice1-0/+1
regular player) is displayed in the speech bubbles now. No need to view your own name to be able to see whether you're showing as a GM now. Signed-off-by: Ira Rice <irarice@gmail.com>
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-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-8/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-09Added the ability to save GM assert state to the client, as requested.Ira Rice1-1/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-09Added the ability to see your own name in game.Ira Rice1-0/+44
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-04Code reformattingBjørn Lindeijer1-4/+1
Mainly making sure 'const std::string &' is used everywhere instead of 'std::string const &'. The former has always been the preferred order in this project. (cherry picked from mainline)
2008-12-09Only play status effect sound effects for localplayerFate1-0/+4
2008-12-07Added some initialization and removed ChargeDialogIra Rice1-2/+12
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-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-2/+3
Conflicts: AUTHORS CMakeLists.txt ChangeLog INSTALL README aethyra.cbp configure.ac data/help/changes.txt data/help/commands.txt data/help/header.txt data/help/support.txt src/Makefile.am src/aethyra.rc src/being.cpp src/being.h src/equipment.cpp src/equipment.h src/floor_item.h src/game.cpp src/gui/buddywindow.cpp src/gui/char_select.cpp src/gui/char_server.cpp src/gui/chat.cpp src/gui/chat.h src/gui/equipmentwindow.cpp src/gui/equipmentwindow.h src/gui/gui.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/itemcontainer.h src/gui/minimap.cpp src/gui/ministatus.cpp src/gui/newskill.cpp src/gui/npc_text.cpp src/gui/npclistdialog.h src/gui/ok_dialog.cpp src/gui/setup_video.cpp src/gui/skill.cpp src/gui/skill.h src/gui/status.h src/gui/table_model.h src/gui/updatewindow.cpp src/gui/viewport.cpp src/inventory.cpp src/inventory.h src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/localplayer.h src/logindata.h src/main.cpp src/map.cpp src/monster.cpp src/monster.h src/net/beinghandler.cpp src/net/beinghandler.h src/net/buysellhandler.cpp src/net/equipmenthandler.cpp src/net/loginhandler.cpp src/net/loginhandler.h src/net/network.h src/net/npchandler.cpp src/net/playerhandler.cpp src/net/protocol.h src/net/tradehandler.cpp src/npc.cpp src/npc.h src/particleemitter.cpp src/particleemitterprop.h src/player.cpp src/player.h src/player_relations.cpp src/resources/imageset.cpp src/resources/imageset.h src/resources/itemdb.cpp src/resources/mapreader.cpp src/resources/monsterinfo.h src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h src/tileset.h src/utils/fastsqrt.h src/utils/strprintf.cpp src/winver.h tools/tmxcopy/Makefile tools/tmxcopy/base64.cpp tools/tmxcopy/base64.h tools/tmxcopy/tostring.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-07Added some initialization and removed ChargeDialogBjørn Lindeijer1-5/+12
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>
2008-12-07Added client-side status change handlers (text, icon, particle effect, audio).Fate1-0/+40
2008-11-29Imported patch that Fate made on TMW which which changes the item Ira Rice1-0/+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-28Eliminated silly C++ warningFate1-1/+1
2008-11-28Initialise mSkillPoint variable to avoid erroneous skill point displays ↵Fate1-0/+1
during game startup
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-5/+2
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-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-11-06Ported a patch by Peavey on TMW to keep all item pointers inside of Ira Rice1-1/+1
inventory. For us, this should get rid of the arrow crashing bug, if it still exists (been a few weeks since I've heard of it happening now).
2008-11-06Have equipment tied into player inventory instead of keeping its own list of ↵Dennis Friis1-1/+1
pointers to items. This ensures the ressource is up-to-date and avoids crashes on stale item pointers.
2008-11-05Minor targeting fix (don't count attacking against target timeouts), as Ira Rice1-5/+6
well as only calling the target draw update code only when necessary.
2008-10-30Fixed a small targeting issue that arose from having uninitialized data Ira Rice1-10/+9
at the start.
2008-10-28Fixed a fast walking bug that was caused by a state conflict Ira Rice1-6/+0
where the keys would tell the client to attack and stop attacking all at the same time. Thanks to SoftLace for reporting it.
2008-10-28Changed the name of the old target key to stop attack, as well as making Ira Rice1-1/+7
it do exactly that in the local player. Since it already was doing this behavior anyways, I just extended it out to stop attack at any point in the attack.
2008-10-28Fixed attacking so that it will actually continue to attack in Ira Rice1-29/+43
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-27Revised code so that dead sprites are de-targeted.Ira Rice1-7/+14
2008-10-27Fixed mouse attacks and targeting.Ira Rice1-1/+5
2008-10-27Added the ability to turn off a target by targeting it again after being Ira Rice1-2/+9
targeted.
2008-10-27Made targets draw on the fringe layer, as well as added t for talking to Ira Rice1-3/+20
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/+99
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-10-23Cleaned up ColorDB code so that it loads with all other databases, as Ira Rice1-1/+0
well as fixed color cycling.
2008-10-15De-hardcoded colors in trunk. Now, all colors are loaded from Ira Rice1-0/+1
colors.xml.
2008-09-25Merged the Tametomo branch into trunk.Ira Rice1-4/+18
2008-09-12Fixed /where, added /cast for heal and gather, some changes to inventory to ↵Lloyd Bryant1-3/+5
support storage
2008-08-28Accepted Patch by Scraggy that moves text in such a way that no text overlapsBjørn Lindeijer1-3/+25
2008-08-18Fixed bugs with new arrow typesLloyd Bryant1-3/+0
2008-08-16reverted last change - playability issuesLloyd Bryant1-4/+0
2008-08-16Bugfix for segfault when hitting a warp while targeting another playerLloyd Bryant1-0/+5
2008-07-18Import of client treeLloyd Bryant1-4/+26
2008-06-12Merged revisions 3738 via svnmerge from Bjørn Lindeijer1-34/+3
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-16Cancel walking to a clicked monster if the target is lost while getting to ↵Dennis Friis1-0/+5
it (killed or otherwise removed).
2008-04-11 Players now need toDavid Athay1-1/+32
click on the monster sprites rather than the tile. Players will now move to the target before attacking it.
2008-03-25Initialized some uninitialized variables (patch by peavey).Philipp Sehmisch1-3/+5
2008-02-12Made pathfinding not halt on collision destination tile, made moving around ↵Eugenio Favalli1-2/+2
with mouse smoother. Added possibility to pass through players with key controls.
2008-01-13Fixed non-default location music loadingDavid Athay1-0/+1
2007-12-21Fixed inventory size not matching the size assumed by eAthena and relatedBjørn Lindeijer1-0/+1
memory corruption and increased default chat log length.
2007-11-20Merged revisions 3629-3630 via svnmerge from Bjørn Lindeijer1-6/+1
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-30Merged equipment database with items database and got rid of the unused itemBjørn Lindeijer1-2/+0
art attribute. Removed the now unnecessary multiplication of weapon IDs with 10000. Added a fallback item icon and used it for unknown items or when an item image fails to load.
2007-08-24Removed useless logic method and reverted mouse cursor to non-static sinceBjørn Lindeijer1-1/+1
there can be only one Gui instance so there is no point in supporting a shared resource.
2007-08-23Changed XP gaining effect to appear on the player instead.Bjørn Lindeijer1-3/+12