summaryrefslogtreecommitdiffstats
path: root/src/game-server/trigger.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Changed SpawnArea and TriggerArea to components of EntityThorbjørn Lindeijer2013-03-251-83/+0
| | | | | | Well, first visible change is that everything just gets longer to read. Reviewed-by: Yohann Ferreira
* Introduced Script::ContextErik Schilling2013-02-211-2/+1
| | | | | | | | This should allow to finally call functions to lua without having to care about working around situations where a lua call causes a c++ call which needs to call to lua again. Tested against the source of tales repository data.
* Made sure the map is set for trigger scriptsErik Schilling2012-07-111-0/+1
| | | | | | Also unsetted maps after execution of scripts to make finding this mistakes easier. Reviewed-by: bjorn.
* Removed the last direct call to global script functionThorbjørn Lindeijer2012-03-031-4/+13
| | | | | | | | | | | | The ScriptAction of the TriggerArea (which can be created by mana.trigger_create) was still using a named global function for its callback. Now it also uses a reference to a script function. Since it was the last occurrence of a call to a global script function, I've also removed the Script::prepare(std::string) overload. Reviewed-by: Erik Schilling Mantis-issue: 299
* Added a bit more precision on the conditions used in the ↵Yohann Ferreira2011-08-261-2/+3
| | | | TriggerArea::update() function.
* Fixed the trigger area declared within map files.Yohann Ferreira2011-08-261-1/+5
| | | | | | | | The bug was pretty generic, as the contains() method of the Rectangle class wasn't checking against left and top sides according to the client view point. Resolves: Mana-Mantis #317.
* Renamed .hpp files into .h for consistency.Yohann Ferreira2010-11-141-5/+5
| | | | | | Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
* Update Copyright date for Manaserv.Bertram2010-02-071-1/+1
|
* Added tracing of kill count for each monster per characterPhilipp Sehmisch2010-01-081-0/+3
|
* Fixed name of the project in copyright headersThorbjørn Lindeijer2009-12-061-7/+6
| | | | | | Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
* Merged MovingObject into the Being classBjørn Lindeijer2009-04-261-8/+9
| | | | | | Also renamed Object to Actor, to make it sound a little less generic. Cleans up a bit the rather big hierarchy of different object types we have.
* Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer2008-11-161-2/+0
|
* Implemented script bindings for making beings talk and sending private chat ↵Philipp Sehmisch2008-05-071-2/+9
| | | | messages from scripts to clients. Implemented trigger areas which are only triggered once when a being steps into them instead of every tick.
* Implemented script trigger areas which call a script function when an object ↵Philipp Sehmisch2008-05-061-0/+13
| | | | steps into them.
* Changed delayed events to an explicit interface.Guillaume Melquiond2007-09-231-3/+2
|
* Singleton managers do not need stateful classes. Changed them to namespace ↵Guillaume Melquiond2007-07-071-1/+1
| | | | interfaces.
* Simplified code by using map pointers only, instead of using both map IDs ↵Guillaume Melquiond2007-07-071-10/+2
| | | | and map pointers.
* Separated the Thing and MovingObject classes from the Object module.Bjørn Lindeijer2007-03-301-1/+3
|
* Modified the game-server to use AbstractCharacterData, some renamingRogier Polak2007-03-141-1/+1
|
* Split persistent player data from game server data. Enabled inventory code back.Guillaume Melquiond2007-01-031-1/+1
|
* Removed obsolete files. Added a generic trigger system.Guillaume Melquiond2007-01-021-0/+55