summaryrefslogtreecommitdiff
path: root/src/game-server/itemmanager.h
AgeCommit message (Collapse)AuthorFilesLines
2013-01-09Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer1-13/+13
Same thing, but shorter.
2011-08-26Fixed mem leak on the item and monster manager unloading processYohann Ferreira1-0/+3
2011-08-10Fixed getting slot id per name.Yohann Ferreira1-1/+1
2011-07-27Reworked the way equip slot info are loaded in a more logical way.Yohann Ferreira1-12/+32
2011-03-24Use a map to quickly find items and monsters by their nameThorbjørn Lindeijer1-1/+3
Introduced a template class NameMap, which provides a nice API for mapping any custom types by their name. This change also makes any duplicate item or monster definitions be complete ignored, rather than being merged into the first definition. Reviewed-by: Philipp Sehmisch Reviewed-by: Yohann Ferreira
2011-03-20Renamed some members to adhere to naming standardThorbjørn Lindeijer1-3/+3
2011-03-20Introduced separate functions for item database loadingThorbjørn Lindeijer1-6/+21
This splits the huge ItemManager::reload() into readEquipSlotsFile() and readItemsFile(), the latter of which is further split up into multiple functions for reading the different elements. Just to keep the amount of nesting down and increase the readability. Removes the need for huge eye-catching comment blocks. Reviewed-by: Freeyorp
2011-03-16Allowed item names instead of IDs in @commandsPhilipp Sehmisch1-0/+8
The @drop and @item commands can now accept an item name instead of an item ID. In addition the amount can be omitted to create a single item.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+92
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.