Rise
The Vieneo Province
Element.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Component.h
"
4
5
class
Element
6
{
7
public
:
8
int
x
,
y
;
9
std::vector<Component>
components
;
10
11
void
Update
()
12
{
13
for
(UINT h = 0; h <
components
.size(); h++)
14
{
15
components
.at(h).Update();
16
}
17
}
18
19
void
Render
()
20
{
21
for
(UINT h = 0; h <
components
.size(); h++)
22
{
23
components
.at(h).Render();
24
}
25
}
26
};
Element
Definition:
Element.h:5
Element::Update
void Update()
Definition:
Element.h:11
Element::x
int x
Definition:
Element.h:8
Element::y
int y
Definition:
Element.h:8
Element::Render
void Render()
Definition:
Element.h:19
Component.h
Element::components
std::vector< Component > components
Definition:
Element.h:9
Displays
Element.h
Generated on Tue May 4 2021 15:18:14 for Rise by
1.8.14