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 };
Definition: Element.h:5
void Update()
Definition: Element.h:11
int x
Definition: Element.h:8
int y
Definition: Element.h:8
void Render()
Definition: Element.h:19
std::vector< Component > components
Definition: Element.h:9