Code: Select all
GameObject::GameObject( MainWindow &Wnd )
:
wnd(Wnd),
ship(Vector( 400.f, 300.f ), 30, 30),
enemy(Vector( 20.f, 20.f ), 30, 30),
projectile(Vector( 0.f, 0.f), 10, 10),
upgrade( *this ),
input( *this ),
movement( *this )
{}
The hierarchy is as follows:
Code: Select all
Game.cpp
|
|GameObject object( Mainwindow &wnd )
|
|Upgrade upgrade( Object &object )
|Input input( Object &object )
|EntityMovement movement( GameObject &object )
Any help would be appreciated. Thanks!