summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-09-28Removed getter/setter cruft from ItemInfoThorbjørn Lindeijer1-4/+1
Made the class and the code in general more readable by removing all the needless getters and setters.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-04-16Post-review fixes.Yohann Ferreira1-5/+3
- 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-03-29Made the flooritems position set back in pixels.Yohann Ferreira1-6/+10
The position is centered to the nearest tile center in tA.
2011-03-29Added the Map::getTileCenter() convenience function.Yohann Ferreira1-5/+1
and made use of it through the tA code. I also remove the obsolete TODO in the flooritem class.
2011-03-17Fix actor and floor items offsets on tA.Yohann Ferreira1-2/+1
The code was simplified a bit, too.
2010-11-12Fix item name in floor item popup menu.Andrei Karas1-1/+1
Trivial fix.
2010-08-26Merged testing branch into master.Yohann Ferreira1-2/+2
2010-05-06Add support for floor item spritesJared Adams1-34/+16
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-04-23Add an Actor class to replace the Sprite classJared Adams1-13/+6
The Actor class manages the Map reference, position vector, and alpha float. These are the common parts from it's children.
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-09Pushed away some 32 hardcoded values.Bertram1-1/+2
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 )
2009-10-15Fixed a potential segfault.Bertram1-2/+3
2009-10-15Make sure item icons in the invy are full opacityJared Adams1-5/+5
2009-09-17Partially (but mainly) resolved Mantis #753 by making monsters, NPC, and ↵Bertram1-4/+11
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-08-13Clean up Being and it's derivativesJared Adams1-2/+2
Move stuff only needed for Players into Player (like slots and sprite limits). Move name handling into Being (no need for three copies of this code). Clean up terminology (including Map terminology). Remove hair-related variables.
2009-04-29Removed underscores from some non-conforming filenamesBjørn Lindeijer1-0/+70
We don't use underscores in the filenames generally, and let's be consistent on that matter.