summaryrefslogtreecommitdiff
path: root/src/game-server/monster.h
AgeCommit message (Collapse)AuthorFilesLines
2011-06-17Changed the attack message to send the attack id.Yohann Ferreira1-2/+2
This is more precise than sending the attack type, that can be guessed by the client anyway when the type parameter will be added in the <attack> tag. This is the server part of Mana issue: #363. Reviewed-by: Bjorn.
2011-05-26Allow monsters to drop multiple itemsStefan Dombrowski1-6/+1
Before at most one item was droped and the sum of all probablilites was limited to 100%. Also in the example data drops are changed to existing items.
2011-03-20Moved defines.h and manaserv_protocol.h into 'common'Thorbjørn Lindeijer1-1/+1
Just seems a bit more organized to me.
2011-03-17Micro-optimizations related to std::stringThorbjørn Lindeijer1-2/+1
* Rely on the fact that a std::string is empty by default * Use std::string::empty() rather than comparing to "" * Construct with std::string() rather than from "" Reviewed-by: Bertram
2011-03-16Allowed monster names in @spawn commandPhilipp Sehmisch1-0/+15
I rewrote the @spawn command to allow two new things: 1. The monster ID can be replaced with the name of the monster. 2. The amount of monsters can be omitted. In that case a single monster is spawned. Reviewed by: Jaxad and Thorbjorn
2011-03-15Some code style cleanups in AutoAttack classThorbjørn Lindeijer1-1/+1
2011-03-12Removed a bunch of silly documentationThorbjørn Lindeijer1-7/+0
A C++ developer should be able to recognize a constructor and a destructor by just looking at it, so let's stop writing down the obvious. :)
2011-03-11Split path finding out of the Map classThorbjørn Lindeijer1-2/+2
Extracted the path finding algorithm out of the Map class and introduced a new class called PathInfo that has the path finding information that used to be part of MetaTile. This allows a single vector of path information to be shared between all maps running on the server, significantly reducing the memory overhead per map (for 200x200 maps, the memory reduction is about 1 MB per map). Part of this change is some cleanup, like moving the 'occupation' counts into MetaTile, inlining some methods for performance reasons, and using STL to simplify memory management. Mantis-issue: 106 Reviewed-by: Bertram
2011-02-16Fixed doc about stroll range, which is coded in pixels.Yohann Ferreira1-2/+2
Not in tiles, as suggested by the header. Trivial fix.
2011-01-30Made the monsters' attributes compute fine again.Yohann Ferreira1-1/+8
As a consequence, the monsters can spawn again. Reviewed-by: Freeyorp.
2010-12-29Moved parts needing to be in sync with the client in protocol.h.Yohann Ferreira1-2/+2
Trivial fix.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+351
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.