summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-01-29Removed Sprite::getCurrentFrame and Sprite::getFrameCountThorbjørn Lindeijer1-12/+0
They are apparently no longer being used. Reviewed-by: Erik Schilling
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-06-23Made the being death sequence better handled.Yohann Ferreira1-0/+7
Now the death animation is set to the minimum of 1.5 seconds just as in the older versions, but permit longer sequences as well. I didn't put a maximum hard cap on it as it may be a burden for the maintainers whatever the hard cap would be, and as it isn't vital to set one anyway. Resolves: Mana-Mantis #364. Reviewed-by: bjorn, Jaxad0127.
2011-05-17Fix sprite buffering size issuesJared Adams1-0/+10
Reviewed-by: Yohann Ferreira
2011-01-13Fix a segfault when the animation loading fails.Yohann Ferreira1-1/+3
Trivial.
2010-12-06Removed superfluous #includes taken from checkheaders list.Yohann Ferreira1-3/+0
Resolves: Mana-Mantis #265. Trivial fix.
2010-07-29Changed the items loading to handle a new 'attack-action' parameter.Yohann Ferreira1-3/+3
The old behaviour was to load the weapon-type value and do many unnecessary checks and transformation on it: The weapon-type was transformed using hard-coded values into an integer enum value. The exact same thing was done on the opposite side in the animation files before comparing the two. As both data were string values, I simplified all of it by using the value taken in items.xml to call the corresponding action. This now also permit to set up new attack animation in items.xml and in the playerset.xml without having the need to modify the client code. Last but not least, the weapon-type value was used by both the skills and the actions and avoided the possibility to set up a definite action for a weapon-type. Note: The weapon-type parameter will become deprecated for the server in favor of a 'skill' parameter to reflect more it's actual use. This patch is the first step to fix Manasource issue: #157.
2010-06-09Remove hard-coded frame counts from Being classJared Adams1-0/+10
Also removes the Monster/Player difference in tmwAthena's Being::logic and moves the particle code from Being::setAttack to Being::Logic for tmwAthena. Reviewed-by: Chuck Miller
2010-05-20Buffer layered sprites under SDLJared Adams1-8/+26
This improves framerate and allows transparent overlay for complex sprites. Two copies of the buffer are kept, one at full opacity, one with variable opactiy, to reduce calls to setAlpha. Reviewed-by: Bertram
2010-05-06Add support for floor item spritesJared Adams1-2/+8
This commit adds a sprite hierarchy (Sprite->ImageSprite,AnimatedSprite,CompundSprite; CompoundSprite,Actor->ActorSprite;ActorSprite->Being,FloorItem) to collect common functionailty into new base classes which will make other Mantis tickets easier to do. Also allows monsters to use particle effects. Reviewed-by: Bertram
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-12Standardize header orderJared Adams1-0/+1
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-09-17Partially (but mainly) resolved Mantis #753 by making monsters, NPC, and ↵Bertram1-4/+17
Floor Items visible even covered. Next Step would be to add a caching system for multi-layered sprites + copy functions for SDL and OpenGL. Then, I'll be able to finish this, by making also players visible when covered... But Kage asked me (each and every hour) to do something else first ;)
2009-03-25A host of code style fixesBjørn Lindeijer1-2/+2
Mostly putting & and * in the right place and making some getters const.
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.
2008-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-31/+10
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-06Some code formattingBjørn Lindeijer1-45/+12
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-3/+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-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-10-10Fixed a small code typo (thought I copied and compiled animatedsprite Ira Rice1-1/+1
before committing. Oh well)
2008-10-10Did a little bit of code cleanup (mostly from TMW changes) as well as Ira Rice1-14/+2
properly implemented line wrapping. Now, there are no more visual artifacts for speech boxes, and it always chooses the most optimal box size (which required that npc_text use it also. Do any other gui classes use the textbox class?).
2008-07-18Import of client treeLloyd Bryant1-1/+1
2007-11-20Merged revisions 3629-3630 via svnmerge from Bjørn Lindeijer1-12/+6
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-05-07Fixed positioning of monster names and target circles.Philipp Sehmisch1-0/+24
2007-03-21Renamed Spriteset to ImageSet.Bjørn Lindeijer1-1/+0
2006-12-12Moved Action, Animation and Frame (renamed from AnimationPhase) classes intoBjørn Lindeijer1-3/+3
the resources directory, since they are part of the SpriteDef class.
2006-11-19Separated sprite definition from playback.Bjørn Lindeijer1-311/+97
2006-11-15Separated getProperty method to an XML utility namespace.Bjørn Lindeijer1-45/+18
2006-11-14Resolve Image* of animation phase at load time instead of storing just theBjørn Lindeijer1-37/+55
spriteset index and looking it up later (checking validity should still be added). Also calculate animation length during loading instead of summing it up each time it is requested.
2006-11-14Separated Action class to its own module.Bjørn Lindeijer1-0/+1
2006-09-20tweaks at the animation system (mostly about fixing the looping attack ↵Philipp Sehmisch1-13/+13
animations of the monsters)
2006-09-16another variable name change doener suggestedPhilipp Sehmisch1-6/+6
2006-09-16Fixed the crash when attacking without a weapon, some additional stability ↵Philipp Sehmisch1-23/+39
improvements and more descriptive variable names in the parsing algorithmn.
2006-09-16Fixed line-endings and set missing properties.Björn Steinbrink1-29/+29
2006-09-13some improvements at the animation systemPhilipp Sehmisch1-13/+34
2006-08-26Applied patch by Bahamut81 which implements resetting of Animation, Action andBjørn Lindeijer1-7/+10
AnimatedSprite. This fixes the animation synchronization issues.
2006-08-04Fix enum being treated as string.Björn Steinbrink1-1/+1
2006-08-04Small code cleanup/lower indentation.Björn Steinbrink1-36/+35
2006-08-04Fixed presence of NULL actions. This is doener's version of the fix, because itBjørn Lindeijer1-1/+4
was more efficient in the more common case.
2006-08-02Some cleanups, fixes and a small start on a solution for the animated spriteBjørn Lindeijer1-22/+31
synchronization problem (resetting all animations).
2006-08-01animations and directions are now passed and stored as enums and no longer ↵Philipp Sehmisch1-21/+92
as strings.
2006-07-30Unified the play methods.Björn Steinbrink1-13/+5
2006-07-29A bunch of cleanups.Björn Steinbrink1-84/+51
2006-07-29Moved include from header to source file.Björn Steinbrink1-0/+1
2006-07-28Moved AnimatedSprite into its own files, removed useless includes.Björn Steinbrink1-0/+340