summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26Made the client use a unique kind of movement code.Yohann Ferreira32-769/+741
This is fixng many issues and (hopefully) will make the movement rendering much smoother. Merge branch 'master' of gitorious.org:~bertram/mana/mana-movement-code-merge Conflicts: src/being.cpp src/net/manaserv/beinghandler.cpp Resolves: TMW-Mantis #946. Reviewed-by: Thorbjorn.
2011-04-18Remove illegal macro names starting with underscore and capitalBen Longbons8-19/+19
2011-04-18Added a client-side position tolerance check.Yohann Ferreira2-10/+26
This is based on the information given by the server which now permit resyncs when necessary. Reviewed-by: Thorbjorn.
2011-04-18A bit of cleanup in the way the Client pops up error dialogsThorbjørn Lindeijer3-82/+52
No point in using mCurrentDialog for the OkDialog, since it will clean up after itself, as was pointed out in many places throughout the code. Now there are two convenience functions for popping up the OkDialog and having it change to a specified state afterwards. This also gets rid of the 4 different ActionListener classes that existed solely for this purpose. Reviewed-by: Yohann Ferreira
2011-04-16Removed ENet version checks since only 1.3 should be used anywayThorbjørn Lindeijer3-14/+0
Reviewed-by: Stefan Dombrowski
2011-04-16Removing unused enum EMAILCHG_EXISTS_EMAILStefan Dombrowski1-5/+0
The protocol uses ERRMSG_EMAIL_ALREADY_EXISTS instead. Reviewed-by: Jaxad0127
2011-04-16Post-review fixes.Yohann Ferreira4-12/+4
- Removed unnecessary comments - Removed a useless contains() check in getTileCenter() - Fix the above function documentation - Don't permit FloorItem to be created without a map object. Reviewed-by: Thorbjorn Lindeijer.
2011-04-16Fixed player movement desyncs on tile-based implementation.Yohann Ferreira1-2/+27
The new destination wasn't sent correctly since the destination was centered but checked pixel exact afterward. Now the destination check has been adapted for tile-wise implementation, leading to an almost desync free movement. Hurray!
2011-04-16Made the attackers look at their victims when possible.Yohann Ferreira1-0/+3
That simply make the game a bit more realistic as I saw many archers back fire arrows lately ;) Plus, that's what the servers should expect.
2011-04-16Introduced the Being::lookAt() function.Yohann Ferreira3-36/+120
We're now using it when picking up items. Also, de-overnested the Game::handleInput() function when handling pickups.
2011-04-11Implemented a simple non-blocking fadeOutAndPlay system.Yohann Ferreira4-12/+81
It's currently used when changing maps. Resolves: TMW-Mantis: #750. Reviewed-by: Thorbjorn.
2011-04-11Adjust action timer to something reasonableJared Adams1-2/+2
1 action per second was annoyingly slow. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Yohann Ferreira
2011-04-11Disable sprite caching for nowJared Adams1-0/+5
Reviewed-by: Thorbjørn Lindeijer
2011-04-11Fixing uninitialized variables in guild inviteStefan Dombrowski1-4/+3
2011-04-09Removed a lot of useless "documentation"Thorbjørn Lindeijer98-488/+25
I have to admit I contributed a large part of these. Sorry for that. Less empty space, more attention to the code. Acked-by: Jared Adams
2011-04-09Renamed Listener to EventListenerThorbjørn Lindeijer26-60/+60
Makes it clear what kind of listener it is, since there are other listener classes as well. Acked-by: Jared Adams
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer60-370/+343
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Channels to Mana::Event::ChannelThorbjørn Lindeijer51-193/+194
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer37-213/+215
Acked-by: Jared Adams
2011-04-07Fix compiler warning about incorrect use of the logger's log memberChuck Miller1-1/+1
Reviewed-By: Jared Adams
2011-04-02Fix a bug with SkillDialog which doesn't listen to attributes changedBlue Sans Douze2-1/+18
2011-03-30Fixing zombies in char select dialogStefan Dombrowski1-2/+21
How to reproduce the bug: * Delete a character. * Create a new character in another slot. * Now the deleted character reappears. Also fixing handling of error messages from character select response. This resolves http://bugs.manasource.org/view.php?id=322 Reviewed-by: Jaxad0127, VUT
2011-03-29Made the Map::findPath() private as it should be used internally.Yohann Ferreira1-9/+8
I also precised the find/Pixel/Tile/Path() documentation.
2011-03-29Made the flooritems position set back in pixels.Yohann Ferreira6-36/+34
The position is centered to the nearest tile center in tA.
2011-03-29Added the Map::getTileCenter() convenience function.Yohann Ferreira5-36/+40
and made use of it through the tA code. I also remove the obsolete TODO in the flooritem class.
2011-03-28Random cleanups - Part 2Yohann Ferreira2-6/+6
- Removed another bogus comment. - Made functions used only in the tA::beinghandler static. - Don't init the destination to an irrelevant value in being::setDestination()
2011-03-28Random code cleanups requested righteously by Thorbjorn - part 1.Yohann Ferreira9-38/+29
- Fixed bogus documentation. - Fixed Vector parameters to const Vector& where releavant. - Removed a false comment. - Removed superfluous headers in src/net/tmwa/beinghandler.h. - Optimize a bit the tmwa::beingHandler::getPixelsPerTickMoveSpeed() function.
2011-03-28Added some tolerance on the tA being position message.Yohann Ferreira1-1/+11
Also made the destination equal to the desired position in that case since it's what the tA server expects. This fixes monsters going to strange destinations while fighting them, and makes it all much smoother.
2011-03-26Merge branch 'master' of gitorious.org:mana/manaBlue Sans Douze2-2/+2
2011-03-26Add search bar to storage and inventory windowsBlue Sans Douze5-18/+112
Reviewed-by: thorbjorn
2011-03-25Merge branch '0.5'Thorbjørn Lindeijer2-2/+2
Conflicts: CMakeLists.txt po/pt_BR.po po/ru.po src/winver.h
2011-03-22Fix a warning on serverdialogBlue Sans Douze1-2/+1
2011-03-22Add option for sorting servers list (issue 316)Blue Sans Douze4-0/+103
2011-03-17Fixed pick up using keyboard for both servers.Yohann Ferreira2-22/+32
The character picks up one item at a time (to remain kinda realistic) and turns to the item picked up.
2011-03-17Fixed wrong comments in and optimize findTilePath() a bit.Yohann Ferreira1-13/+3
2011-03-17Fix actor and floor items offsets on tA.Yohann Ferreira2-4/+2
The code was simplified a bit, too.
2011-03-17Simplified the get/setAttackRange() functions as requested.Yohann Ferreira5-35/+19
The attack range is still hardcoded for Manaserv as long as generic equipment handling hasn't been implemented.
2011-03-17Fixed the Being::logic() once again as pointed out by Thorbjorn.Yohann Ferreira1-3/+3
Luckily or not, the code did the intended without even being right. :)
2011-03-17Handle ta move and position message in a more generic way.Yohann Ferreira1-86/+47
This avoids code duplication.
2011-03-17Now the client centers the pixel positions when using tA.Yohann Ferreira7-14/+111
I made it so that the behaviour can be changed with only a boolean setting in the playerhandler.
2011-03-16Fixed the bug with remote player movement animation,Yohann Ferreira2-8/+10
by removing a now useless reset in the beinghandler. Also added checks for flawed directions.
2011-03-16Fixed the attack range handling for both servers.Yohann Ferreira4-22/+62
The attack range is always the default for manaserv, as proper equipment handling is to be added. Anyway, now the proper attack range is handled in tmwAthena and is always set a proper minimum for both protocols.
2011-03-15Adapted the Being::logic() to handle very slow beings.Yohann Ferreira1-4/+6
This fixes the bug about monsters direction not being updated. The good news is that the bug was also present for Manaserv and is now corrected. I also moved back the ActorSprite::logic() call at its initial place.
2011-03-15Made the tA Beinghandler avoid dealing with flawed coordinates.Yohann Ferreira2-54/+84
Also fixed again a condition in Being::logic(). I'll beautify the code in tmwAthena:Beinghandler once everything will be working better. Note: I also suspect current clients to flood the server with keyboard messages, hence blocking the animation when they are remote. I'll need to test that with someone having the same client than here..
2011-03-15Fixed a small condition.Yohann Ferreira1-1/+1
Should be invisible on behaviour change.
2011-03-15Add a tolerance check on current position to limit desyncs.Yohann Ferreira2-15/+42
Also removed dead code.
2011-03-15Implemented a screen shake effect system in the viewport class.Philipp Sehmisch6-1/+106
The screen can either be "nudged" in a random direction with a specific intensity or you can define an exact x and y intensity, decay factor and duration. On a tmwAthena server an effect is triggered when the player character dies. A method for stopping all shake effects is also implemented, but not used yet. I added a netcode message for Manaserv to trigger an effect server-sided. Because our protocol has currently no way to transport floating point values, the decay is transported as a fixed point value with 4 decimals which is entirely sufficient for this purpose.
2011-03-15Reset destination to position at warp time for TmwAthena.Yohann Ferreira1-2/+5
This fix the following bug: When changing map, the local player sometimes walks randomly until the player reacts.
2011-03-15Simplify the tmwAthena calculation of the pixel/tick speed.Yohann Ferreira1-11/+3
2011-03-15Basically merged the two movement algorithms into one.Yohann Ferreira19-648/+377
This was made in favour of the manaserv way of doing things. I also added a way to keep the original server speed value so the pixel value can be recomputed at each map change, as this was necessary since the speed is given before the first map is loaded. The code is much more simpler now about movement handling, and we can already see improvements on other characters movements in The Mana World with this. Everything can't be perfect the first time; here are bugs identified so far: - Monsters direction isn't updated on TmwAthena for obscure reasons. - Remote players walking animation is sometimes reset on each steps. - When changing map, the local player sometimes walks randomly until the player reacts. Stay tuned!