Add unit test for the deferred virtual call implementation in SizeNotifiable.

Fix the build as necessary.
Change DeferredRegister() to take no construction parameters.
This commit is contained in:
King_DuckZ 2016-11-14 00:29:49 +01:00
parent 0a3897f60a
commit 10f830809b
11 changed files with 164 additions and 16 deletions

View file

@ -28,7 +28,7 @@ namespace cloonel {
///--------------------------------------------------------------------------
Platform::Platform (SDLMain* parSdlMain, const float2& parPos, Texture* parTexture, const float2& parSize) :
Placeable(parPos),
m_screenRatio(parSdlMain, &m_screenRatio),
m_screenRatio(parSdlMain, DeferredRegister()),
m_size(parSize),
m_collisionTop(new HorzCollisionBar(parPos, parSize.x())),
m_surface(parTexture)