summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-06-08Try decreasing the look ahead distance for keyboard walking, seemed to ↵Chuck Miller1-2/+2
helped a bit
2009-05-29Some movement fixes for TMWServ build.Chuck Miller1-3/+6
Looked pretty good so I removed annoying debug information. Also should note that movement between two players is still off.
2009-05-26Fixed attacking for tmwserv. Added back attacking with keyboard for tmwserv.David Athay1-3/+17
2009-05-19Fixed attacking.David Athay1-2/+4
2009-05-19Fixed targeting and warn on attack-range not being found in itemdb.David Athay1-9/+5
Tried to make the client continue attacking (it does not need to send attack packets, but just continue playing attack animation and sounds). Now logs a warning when a weapon is found without an attack-range (I keep finding weapons with an attack-range of 0 which makes it hard to target monsters).
2009-05-18Hopefully player will now show its got a target. Needs more work still.David Athay1-4/+24
2009-05-18Added target combatDavid Athay1-7/+14
2009-05-16Fixes the lightspeed bugChuck Miller1-3/+3
2009-05-17Fix offsets (16,32) on TextEffects for damage, pickup and exp.Dennis Friis1-4/+4
2009-05-14Fixed alpha to also apply to the main text of a text particleBjørn Lindeijer1-1/+2
It was only being applied to the outline and shadow. This improves the fadeout a little, but because the text is being rendered multiple times, it still looks strange.
2009-05-13Add GM notification handlingJared Adams1-0/+8
2009-05-13Remove Aethyra's custom visible GM systemJared Adams1-1/+0
Very hackish and would require altering eAthena. It also isn't very portable; if you use the same character name on multiple servers and are a GM on one of them, the client will try to make you a GM on the other.
2009-05-12Fix up handling of GM statusJared Adams1-6/+2
2009-05-12Remove methods from LocalPlayer that just call NetJared Adams1-75/+0
And make a few others like that, and remove them too.
2009-05-12Makes ItemContainer use indexes for selected and highlighted items, rather ↵Chuck Miller1-5/+0
then Item pointers. As suggested by Bjorn
2009-05-10Stop attacking when walking awayBjørn Lindeijer1-3/+6
By setting mKeepAttacking to false when setting a destination.
2009-05-09Modify keyboard handlingFreeyorp1-1/+1
The attack key now no longer changes the target if there is a target already set, and changing the target to the same being now no longer cancels the target since a dedicated Cancel Target Key now exists.
2009-05-06Remove more inventory handling support #ifdefsJared Adams1-17/+2
This also fixes some minor bugs and centralizes some logic.
2009-05-04Fixed seemingly random attacks from occuring once a target is put up.Tametomo1-1/+1
This was due to an uninitialized variable. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-29Removed underscores from some non-conforming filenamesBjørn Lindeijer1-1/+1
We don't use underscores in the filenames generally, and let's be consistent on that matter.
2009-04-20Drop current target on deathBjørn Lindeijer1-0/+11
2009-04-15Also hardcode the bold font, we ship it after allBjørn Lindeijer1-1/+1
Plus some tweaks and cleanups.
2009-04-14Cleanup of Sound class, fixing restoring of volumes and musicBjørn Lindeijer1-3/+2
While a previous commit fixed the restoring of music of the current map in the setup window, this commit makes sure that the Sound class itself will resume a previously playing song when it is re-initialized. Other fixes: * Restore the correct volumes when enabling sound * Play the right audio track during login * Specify which font to use for bold text
2009-04-14Put the remaining unnamespaced handlers in a namespaceBjørn Lindeijer1-8/+12
Also fixed some initialization order warnings when compiling with tmwserv support and made two getters const.
2009-04-13Revert forced FPS limitBjørn Lindeijer1-1/+3
Don't force an FPS limit when people don't want it. Just default to limit on 60 fps instead, but do allow it to be disabled. This reverts part of commit 4b7755fcae0de15951c508ec034158007c8b6cf3.
2009-04-11Remove more support #ifdefsJared Adams1-9/+7
2009-04-07Implement TMWServ's PartyHandlerJared Adams1-12/+3
2009-04-06Moved many MessageOut constructions aroundBjørn Lindeijer1-12/+0
No real point in having these abstracted away twice. We're using network interfaces now instead of functions structured in namespaces.
2009-04-06Add TMWServ's SkillHandlerJared Adams1-2/+1
Also namespace both Player- and TradeHandlers
2009-04-03Fill in TMWServ's TradeHandlerJared Adams1-82/+22
Also started temparary implementation of the Net::getXHandler() methods and started using them.
2009-04-02Start TMWServ's PlayerHandler and InventoryHandlerJared Adams1-11/+11
2009-04-02Some cleanup and renamingBjørn Lindeijer1-8/+8
* Removed superfluous 'virtual' keyword in *Handler implementations * Renamed NPCHandler to NpcHandler * Renamed InvyHandler to InventoryHandler * Made all *Handler interface methods pure virtual * Used forward declarations in net.h * Renamed {start,end}Shoping to {start,end}Shopping
2009-04-02Removed duplicated code in LocalPlayerBjørn Lindeijer1-60/+1
This code was present in both Player and LocalPlayer. If there's some kind of issue with executing this stuff in a different order, it should be solved differently.
2009-04-01Fix a bug for TMWServ compilationJared Adams1-2/+4
2009-04-01Make eAthena's inventory handlerJared Adams1-23/+17
Also cleanup some related #ifdefs in LocalPlayer.
2009-04-01Build eAthena's PlayerHandlerJared Adams1-53/+13
2009-03-31Implement a few more handlers for eAthenaJared Adams1-8/+13
Party, skill, and trade handlers made for eAthena.
2009-03-30Merge item types to remove more #ifdefsJared Adams1-2/+2
2009-03-29Fix up eAthena party handling some moreJared Adams1-3/+11
2009-03-28Clean up eAthena party handling a bit moreJared Adams1-5/+9
2009-03-27Moved the inventory and storage offset handling into netcodeBjørn Lindeijer1-14/+12
No need to complicate the item containers and inventory classes with a silly offset used by the eAthena server. Also fixed the logToStandardOut option by reading it from the config after the configuration has been initialized.
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-1/+0
Now that messages can be sent without requiring a pointer to the Network instance, a lot of cleanup was possible.
2009-03-27Made eAthena's Network class statically accessibleBjørn Lindeijer1-28/+14
Now the instance doesn't need to be passed into the MessageOut class anymore. Expect a lot of cleanup in the next commit.
2009-03-27Fixed some positioning issuesBjørn Lindeijer1-4/+1
Started with not being able to click NPCs properly, and I ended up correcting the draw positions of overhead text, targets and sprite ordering. It's now a bit more straight-forward. The position of a being is simply in the middle of the sprite at the bottom. When drawing the sprite, an offset remains because all the sprites are compensating for getting drawn half a tile to the left and one tile up.
2009-03-27Simplified and fixed initialization of login dataBjørn Lindeijer1-2/+2
Command line parameters were being overridden by old configuration settings.
2009-03-27Fixed position of dots on minimapBjørn Lindeijer1-2/+8
Also made mPx and mPy private and synchronize with mPos on setPosition(). The side effects of setting destination and clearing the path have been removed from setPosition(). Only the tmwserv PlayerHandler seemed to rely on that feature. Mantis-issue: 672
2009-03-27Fixed include structure in resource/ directoryBjørn Lindeijer1-0/+1
There is also a new rule that trivial constructors and destructors should no longer be trivially "documented", since this just takes up space with no gain.
2009-03-26Remove redundancy, fix variable names and other code cleanupsBjørn Lindeijer1-6/+3
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-32/+90
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-2/+2
Conflicts: Many files.