Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 8 Oct 2016 10:21:41 +0000 (12:21 +0200)
committerNer'zhul <nerzhul@users.noreply.github.com>
Sat, 8 Oct 2016 13:57:50 +0000 (15:57 +0200)
commit656faf7373587bc59b47986a28dbd2fce4c45474
tree0d2414db105bfeaa1112576725da61bfdfc1edec
parent9393e4a0a8e32905d32a9dc58131218aee318686
Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)

* Server/Client Environments now have an helper to cast Player object in the right type to use it
* Server: use RemotePlayer everywhere and remove previous added casts
* Client: use LocalPlayer where needed
* Environment: remove unused functions (getPlayers(), getRandomConnectedPlayer(), getNearestConnectedPlayer())
12 files changed:
src/client.cpp
src/environment.cpp
src/environment.h
src/network/serverpackethandler.cpp
src/script/lua_api/l_inventory.cpp
src/script/lua_api/l_inventory.h
src/script/lua_api/l_object.cpp
src/script/lua_api/l_object.h
src/script/lua_api/l_server.cpp
src/server.cpp
src/server.h
src/serverobject.h