Shkyera Engine
Easy to use, game engine for Python
GameObject.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <memory>
10 #include <string>
11 #include <vector>
12 
13 #include "core/Entity.hpp"
14 
15 namespace shkyera {
16 
23 class GameObject : public Entity {
24  public:
30  GameObject(std::string name);
31 
37  std::string getName() const;
38 
39  private:
40  std::string _name;
41 };
42 
43 } // namespace shkyera
A class representing an entity in a 3D world with position, orientation, and scale.
Definition: Entity.hpp:12
A class representing a game object.
Definition: GameObject.hpp:23
GameObject(std::string name)
Constructor to create a game object with a specified name.
Definition: GameObject.cpp:5
std::string getName() const
Get the name of the game object.
Definition: GameObject.cpp:7
std::string _name
The name of the game object.
Definition: GameObject.hpp:40
Definition: Entity.cpp:3