summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-02-02Add missing const and static into resource classes.Andrei Karas1-4/+8
2014-01-16add missing const in xmlnode pointers.Andrei Karas1-2/+3
2014-01-01update copyright year in all sources.Andrei Karas1-1/+1
2013-12-18add restrict into spritedef.Andrei Karas1-2/+2
2013-10-01replace tile size from 32 to mapTitleSize.Andrei Karas1-4/+6
2013-09-28add const for methods return values.Andrei Karas1-2/+2
2013-09-19fix some compilation issues in different platforms.Andrei Karas1-1/+1
2013-09-19add some more consts.Andrei Karas1-1/+2
2013-09-18add const to other files.Andrei Karas1-1/+1
2013-09-16remove unused includes from resources.Andrei Karas1-1/+0
2013-07-23Add new sprite actions for water and sky.Andrei Karas1-0/+12
New actions: fly, swim, standsky, standwater, sitsky, sitwater, attacksky, attackwater, spawnsky, spawnwater, deadsky, deadwater For now attacksky and attackwater unused.
2013-04-16Fix in spritedef after last changes.Andrei Karas1-2/+2
2013-04-16improve spritedef class.Andrei Karas1-15/+19
2013-04-14some more style fixes from cpplint.Andrei Karas1-2/+1
2013-04-10Add option to left all per map sprites in memory if once was loaded.Andrei Karas1-2/+8
This can prevent random lags and also can use more memory.
2013-02-26Improve string usage in other files.Andrei Karas1-3/+3
2013-01-20Last part with FOR_EACH changes.Andrei Karas1-20/+9
2013-01-16update copyrights year.Andrei Karas1-1/+1
2012-09-16Add const to variables with type size_t.Andrei Karas1-2/+2
2012-09-04add const to more classes,Andrei Karas1-1/+1
fix other small style issues.
2012-09-04Add const to more classes.Andrei Karas1-40/+46
2012-06-28Add validation for some xml parameters.Andrei Karas1-3/+4
2012-06-04Fix default animation in actions with missing dead animation (for old servers)Andrei Karas1-2/+4
2012-05-31Add sittop sprites support.Andrei Karas1-0/+1
Add groundtop collision support (not collision but special selected tiles).
2012-04-25Improve iterators part 2.Andrei Karas1-15/+12
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