summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2012-07-07Rename AutoAttack to AttackErik Schilling1-2/+2
2012-04-14Introduced a Timeout class for counting down without countingThorbjørn Lindeijer1-0/+2
The timeout remembers a reference point of time against which it can check how much time is remaining. Reviewed-by: Erik Schilling Reviewed-by: Yohann Ferreira
2012-04-04Renamed Thing to EntityThorbjørn Lindeijer1-2/+2
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
2012-04-04Enhanced special supportErik Schilling1-0/+2
- Made the current charge being saved. - Added script binds: - chr_set_special_recharge_speed - chr_get_special_recharge_speed - chr_set_special_mana - chr_get_special_mana - get_special_info - Added special info lua class. Functions: - name - needed_mana - rechargeable - on_use - on_recharged - category Further the engine no longer sets charge to 0 after using of specials this allows more flexbilillity (like failing specials). Changes on the xml database: - recharge renamed to rechargeable (needed by client and server) - needed - the needed mana to trigger a special (server only) - rechargespeed - the defailt recharge speed in mana per tick (server only) - target - the type of target (either being or point) (server and client) I also made the lua engine pushing nil instead of a 0 light userdata when the pointer was 0. Database update needed. Change is tested. Mana-Mantis: #167, #156 Reviewed-by: bjorn.
2012-03-02Merged all the different Lua states into oneThorbjørn Lindeijer1-0/+2
No more Lua state for each status effect, monster, item effect or map. All scripts are loaded into the same state. This should be more efficient overall and make it easier to implement dynamic reloading of the scripts in the future. Now, this introduces the problem of name collisions between different Lua scripts. For now this is solved by using more specific function names, like 'tick_plague' and 'tick_jump' rather than just 'tick'. The plan is however to get rid of these globals, and register these callbacks from the script, so that they can be local functions without the danger of colliding with other scripts. Reviewed-by: Erik Schilling Reviewed-by: Yohann Ferreira
2012-01-29Removed unused createRandomPassword functionThorbjørn Lindeijer1-2/+0
Reviewed-by: Erik Schilling
2011-09-09Add persistent items support based on seeseekey's work.Yohann Ferreira1-0/+1
Also made some random changes where useful, including: - Code formatting fixes, - Design fix about the fact that only the game config option should be checked. - Fixed the size of the values sent and receive to follow the rest of the development. - Fixed variables names to make them show what they are, and not why they are used. Resolves: Mana-Mantis #142.
2011-03-20Moved defines.h and manaserv_protocol.h into 'common'Thorbjørn Lindeijer1-2/+2
Just seems a bit more organized to me.
2011-01-26Add an heartbeat time flag in the statistics file.Yohann Ferreira1-0/+1
This way, any kind of external service can know about the running state of each servers, even if only the account server is updating the statistics because: 1. When the account server is running, each <gameserver> tag is a running game server. Otherwise, it's not listed. 2. Whenever the account server stops running, the stat file isn't updated anymore and so the <heartbeat> tag isn't. 3. Game servers without any contact with an account server will try to reconnect to the account server and kick out every players so they aren't considered as running in that case. Reviewed-by: Crush. Resolves: Mana-mantis #270.
2011-01-09Removed the superfluous point struct.Yohann Ferreira1-1/+1
It was too close from the Position class and it leads to making the server handle one or another type through the code. Still bugged me many times while making changes. Reviewed-by: Jaxad.
2010-12-29protocol.h -> manaserv_protocol.h to avoid conflicts with mysql files.Yohann Ferreira1-1/+1
Resolves: Mana-Mantis #278.
2010-12-16Standardized the current errors thrown.Yohann Ferreira1-0/+1
Reviewed-by: Jaxad0127.
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-68/+68
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-10-26Always check for zlib and add the necessary library flagsThorbjørn Lindeijer1-4/+3
Not only necessary on Windows, but also on Ubuntu (and probably Fedora) This seems to be due to a recent change in how things are packaged. Reviewed-by: Bernd Wachter
2010-09-08Centralized stringToBool conversion.Yohann Ferreira1-1/+0
Also moved the trim() function into the utils namespace where it belongs more, and made some random code cleanups. Reviewed-by: Thorbjorn.
2010-08-29Merge branch 'testing'Freeyorp1-0/+8
Conflicts: src/account-server/storage.cpp src/game-server/being.cpp src/game-server/being.hpp src/game-server/character.cpp src/game-server/character.hpp src/game-server/gamehandler.cpp src/game-server/inventory.cpp src/scripting/lua.cpp src/sql/mysql/createTables.sql src/sql/sqlite/createTables.sql
2010-08-15Add included enet to CMakeBernd Wachter1-3/+8
2010-07-30Made the game-server compile again with CMake.Yohann Ferreira1-0/+8
2010-07-23Fixing compatibility with cmake 2.6.0Renato Alves1-2/+2
The syntax IF ((condition) OR (condition)) is not accepted by cmake prior to 2.6.4. The patch should address this without affecting newer versions.
2010-05-16Changed and split up the default location for loading dataThorbjørn Lindeijer1-3/+4
Instead of loading data from a 'data' directory in the current working directory, the server now uses clientDataPath and serverDataPath as specified in the configuration. This removes the need to set up symbolic links in order to merge these two types of data. The default values point to example/clientdata and example/serverdata, where a minimal example world can be developed to make setting up an initial server quick and easy. The XML::Document convenience class was copied over from the client. Also, the ResourceManager is now shared between both servers, since the account client is reading items.xml. Reviewed-by: Jared Adams
2010-01-30Win32 build fixes when building with cmakeBernd Wachter1-2/+6
Add missing zlib dependency, add NOGDI flag to avoid namespace clashes.
2010-01-29Add/fix win32 build rulesBernd Wachter1-1/+22
2010-01-29Switch inverted binary namesBernd Wachter1-2/+2
2010-01-29Fix build flags for optional libraries, add extra link librariesBernd Wachter1-5/+10
2010-01-29Use the module shipped with CMake 2.6 to detect Lua 5.1Bernd Wachter1-5/+5
2010-01-29Upgraded CMakeLists.txt files to deal with compile option. I have still one ↵Bertram1-64/+94
problem with Lua... There must be something wrong in the FindLua.cmake module because the FIND_PACKAGE(Lua) doesn't work and is currently commented out.
2010-01-28Added WIP entries for Cmake build. This is configurable but non-working atm.Bertram1-0/+252
I'll need a bit more time and help to get this fully working, but it's a good start :) Also corrected a typo in a makefile.am file.