RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) (patch...
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 8 Oct 2016 15:56:38 +0000 (17:56 +0200)
committerNer'zhul <nerzhul@users.noreply.github.com>
Sat, 8 Oct 2016 20:27:44 +0000 (22:27 +0200)
commit7bbd716426bf989bf071e2322a9b797cc5f78acb
tree0c626a1cb5dd84a04c5963c020c0c9d29863e770
parentedba6e50d9c9c0a7120c251bed36a87b51f4c826
RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) (patch 3 of X)

* remove IGameDef from Player class, only LocalPlayer has it now
* move many attributes/functions only used by LocalPlayer from Player to LocalPlayer
* move many attributes/functions only used by RemotePlayer from Player to RemotePlayer
* make some functions const
* hudGetHotbarSelectedImage now returns const ref
* RemotePlayer getHotbarSelectedImage now returns const ref
* various code style fixes
src/environment.cpp
src/environment.h
src/localplayer.cpp
src/localplayer.h
src/player.cpp
src/player.h
src/script/lua_api/l_object.cpp
src/server.cpp
src/server.h