Seminar Computergrafik mit GameEngines: EventQueue (inspiriert von https://gameprogrammingpatterns.com/event-queue.html)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
350 B
19 lines
350 B
#include "Spectator.h"
|
|
|
|
#include <iostream>
|
|
#include "Game.h"
|
|
|
|
void Spectator::OnWallJumped(WallJumpEvent *event) {
|
|
std::cout << "Wall jump at " << event->time << std::endl;
|
|
}
|
|
|
|
void Spectator::OnWallCrashed(WallCrashEvent *event) {
|
|
std::cout << "Wall crash at " << event->time << std::endl;
|
|
}
|
|
|
|
|
|
void Spectator::draw(QPainter &painter) const {
|
|
|
|
}
|
|
|
|
|
|
|