summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-04-01Last part of fixes.Andrei Karas1-1/+1
2012-03-29Replace vectors with strings to short names.Andrei Karas1-3/+3
2012-03-27Extend sequence animation tag. Allow set in attribute value any frame numbers.Andrei Karas1-20/+98
Examples what doing same: <sequence start="55" end="60" delay="75" /> <sequence value="55-60" delay="75" /> <sequence value="55,56,57,58,59,60" delay="75" /> Other examples: <sequence value="55,p,56,p,58,p,59,p,60" delay="75" /> p mean pause.
2012-03-27Add pause animation tag.Andrei Karas1-0/+4
Example: <pause delay="10"/>
2012-02-26Fix incorrect last dead frame delay for old servers.Andrei Karas1-2/+20
2012-01-10Replace xmlStrEqual to xmlNameEqual.Andrei Karas1-12/+12
2012-01-10Replace all xmlNodePtr to XmlNodePtr.Andrei Karas1-7/+7
2012-01-10Move libxml2 includes to xml.hAndrei Karas1-2/+0
2012-01-05Update copyrights year.Andrei Karas1-1/+1
2011-11-24Refactoring in spritedef after last commit.Andrei Karas1-20/+16
Add missing checks.
2011-11-24Prevented circular include in sprite definitionsErik Schilling1-4/+15
When including a file that already is included the client won't try to load it again and end in an endless loop but stops parsing and logs and warning. Reviewed-by: bjorn. Conflicts: src/resources/spritedef.cpp
2011-11-24Add ability to play different animation depend on monster hp.Andrei Karas1-16/+62
Disabled for legacy servers because monster hp unknown and compilated hp can be wrong (version <= 0). For usage need add to action tag attribute hp="xx" Example: <action name="stand" hp="50" imageset="base"> ... </action> Here 50 mean 50% of health or less. Default action tag mean hp=100
2011-11-08Fix more gcc 4.7 warnings.Andrei Karas1-2/+2
2011-11-07Fix some warnings under gcc 4.7.Andrei Karas1-2/+2
2011-09-08Replace most iterator to const_iterator.Andrei Karas1-1/+1
Some other minor changes.
2011-08-12Rename file names log and chatlog to correct logger and chatlogger.Andrei Karas1-1/+1
2011-07-21Fix possible crash. Move unsafe initialisations from static members.Andrei Karas1-2/+1
2011-06-08Zero variables after calling decRef().Andrei Karas1-0/+3
2011-05-30Fix memory leaks in being, socialwindow classes.Andrei Karas1-1/+1
2011-05-24Add simple memory leak detector.Andrei Karas1-0/+2
Can be enabled by configure option -enable-memdebug=yes. Known issue: not all memory allocations hooked with it.
2011-04-13Impliment new tags in sprites animations and random condition.Andrei Karas1-4/+19
Tags: <label>, <goto>
2011-04-03Change imageset offset work not like default offset, but as additional offset.Andrei Karas1-4/+4
2011-04-03Add default offsets in imageset tag for all animations.Andrei Karas1-2/+6
2011-04-03Add spawn animation to mobs.Andrei Karas1-0/+5
Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN
2011-03-31Add repeat attribute to xml sequence tag.Andrei Karas1-11/+24
2011-03-16Add checks and fix some code style.Andrei Karas1-1/+2
2011-02-19Update copyrights.Andrei Karas1-2/+3
2011-01-21Add diagonal animations.Andrei Karas1-0/+8
New animation names: upleft, upright, downleft, downright Tested atleast at mobs.
2011-01-02Initial commit.Andrei Karas1-0/+339
This code based on mana client http://www.gitorious.org/mana/mana and my private repository.