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
15
class
gBaseComponent
:
public
gAppObject
{
16
public
:
17
gBaseComponent
();
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_ */
gAppObject::gAppObject
gAppObject()
gBaseComponent::~gBaseComponent
virtual ~gBaseComponent()
gBaseComponent::usedcomponents
static std::list< gBaseComponent * > usedcomponents
Definition
gBaseComponent.h:24
gBaseComponent::gBaseComponent
gBaseComponent()
gBaseComponent::update
virtual void update()
gBaseComponent::setup
virtual void setup()
gBaseComponent::onEvent
virtual void onEvent(gEvent &event)
gEvent
Definition
gEvent.h:32
gAppObject.h
gEvent.h
engine
base
gBaseComponent.h
Generated by
1.15.0