So im transferring from Java and now im making a simple game loop. I made an abstract class with virtual so I can reuse my game engine core class. My game engine is called Faust. Anyways, the faust class has a game timer that calls the overrideable update and render functions every 60 FPS. My game class that inherits from faust is not responding to Faust's render and update. How do I go about and fix this?
#include <iostream>
#include "game.h"
#include "faust.h"
usingnamespace std;
Game::Game(int Fps):Faust(Fps){
}
Game::~Game(void){
}
void Game::update() const{
cout<<"ticked";
//This function should respond from the superclass Faust. But I dont know how to.
}
void Game::render() const{
//same here
}
Any help appreciated. In java it was alot easier since it was just "abstract" class modifier