Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
observer.h
1
10
#pragma once
11
12
#include <core.h>
13
#include "signal.h"
14
15
namespace
rune
{
16
17
class
RUNE_ENGINE
Observer
18
{
19
public
:
21
virtual
void
onNotify
(
Signal
const
& signal) = 0;
22
23
};
24
25
}
//namespace rune
rune::Signal
Object that is used as a signal to notify observers of action.
Definition:
signal.h:19
rune::Observer
An interface that allows objects to watch a subject for signals, and perform some action when notifie...
Definition:
observer.h:18
rune::Observer::onNotify
virtual void onNotify(Signal const &signal)=0
A virtual method to be overridden by a concrete implementation of the observer class.
rune
The main namespace to be used for interfacing with the engine.
Definition:
animator.h:21
RuneEngine
src
Events
observer.h
Generated on Tue Feb 2 2021 12:53:34 for the Rune Engine with
1.8.18.