summaryrefslogtreecommitdiff
path: root/src/game-server/entity.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-04-14Use a full user data for Entity referencesThorbjørn Lindeijer1-1/+1
Only moved a single script function to a member for now, will do others in a separate commit.
2013-03-25Moved documentation out of class definitionThorbjørn Lindeijer1-0/+3
Inline documentation is in general needlessly verbose and only makes it harder to read the actual class API. This change moves this kind of documentation to the function implementation for the 'Entity' class. For inline methods, the implementation is moved outside of the class using the 'inline' keyword. This provides a good place to put the documentation, but it also further cleans up the class definition. The class definition now gives a much better overview over its API. And if needed, details can be looked up at the function implementations. Reviewed-by: Erik Schilling
2013-03-25Changed SpawnArea and TriggerArea to components of EntityThorbjørn Lindeijer1-0/+22
Well, first visible change is that everything just gets longer to read. Reviewed-by: Yohann Ferreira
2013-01-09Replaced EventListener with signals based on libsigc++Thorbjørn Lindeijer1-47/+0
This replaces the rather hard to understand event dispatcher with a probably even harder to understand templated library, but fortunately we can rely on the available documentation. Hopefully it will also help with the readability of our code and with adding additional signals to other classes. Added libsigc++ to README and Travis CI configuration. Reviewed-by: Erik Schilling
2012-04-04Renamed Thing to EntityThorbjørn Lindeijer1-0/+68
In preparation for using an entity/component system for the entities in the game world, this name will be more recognizable and easier to talk about. Reviewed-by: Yohann Ferreira