GlistEngine
Loading...
Searching...
No Matches
gBaseComponent.h
Go to the documentation of this file.
1/*
2 * gBaseComponent.h
3 *
4 * Created on: Jan 28, 2023
5 * Author: noyan
6 */
7
8#ifndef BASE_GBASECOMPONENT_H_
9#define BASE_GBASECOMPONENT_H_
10
11#include "gAppObject.h"
12#include "gEvent.h"
13#include <list>
14
15class gBaseComponent : public gAppObject {
16public:
18 virtual ~gBaseComponent();
19
20 virtual void setup();
21 virtual void update();
22 virtual void onEvent(gEvent& event);
23
24 static std::list<gBaseComponent*> usedcomponents;
25};
26
27#endif /* BASE_GBASECOMPONENT_H_ */
Definition gAppObject.h:14
Definition gBaseComponent.h:15
virtual ~gBaseComponent()
static std::list< gBaseComponent * > usedcomponents
Definition gBaseComponent.h:24
virtual void update()
virtual void setup()
virtual void onEvent(gEvent &event)
Definition gEvent.h:32