adi64 / terminus

Game Programming Seminar 2014/15
3 stars 0 forks source link

127 player class #129

Closed adi64 closed 9 years ago

adi64 commented 9 years ago

Creates classes for AbstractPlayer, LocalPlayer, AIPlayer and RemotePlayer. These have their own camera. The game sets the camera that should be used during rendering.

The EventHandler now manipulates the local player's camera and manages train interaction with the player object.

The LocalPlayer and RemotePlayer classes are both empty at the moment. The RemotePlayer class will probably be populated later, but I'm not so sure about the LocalPlayer class. Maybe we should delete it, maybe we should keep it so that at least the class type gives a hint that this is the player that is user-controlled.

ref #127 Create player class

Fidge123 commented 9 years ago

very minor changes required other than that, very nice :cloud: :cloud: :cloud: :cloud: :steam_locomotive: :train: :train: :train: :train: :train: :train:

(additionally to the comments: There is a debug output saying "Reload completed!" that should be removed)

Fidge123 commented 9 years ago

also works on android

adi64 commented 9 years ago

Thanks for the comments and cleaning the code :) However, constexpr will not compile with a Visual Studio compiler ( http://stackoverflow.com/questions/20264644/constexpr-not-compiling-in-vc2013 ), therefore we should stick to only using const - or drop support for MSVC compilers.