diff --git a/AnimationHandler_8h_source.html b/AnimationHandler_8h_source.html index c578c81..0729684 100644 --- a/AnimationHandler_8h_source.html +++ b/AnimationHandler_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/AnimationHandler.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
BackgroundMusic.h
+
+
+
1#pragma once
+
2
+
3enum class BackgroundMusic;
+
+
+ + + + diff --git a/ColliderComponent_8h_source.html b/ColliderComponent_8h_source.html index 1a1f180..e47fea5 100644 --- a/ColliderComponent_8h_source.html +++ b/ColliderComponent_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/ColliderComponent.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ConfigLoader.h
+
+
+
1#pragma once
+
2
+
3#include <nlohmann/json.hpp>
+
4
+
5using json = nlohmann::json;
+
6
+
23
+
+
24class ConfigLoader {
+
25
+
26public:
+
27 ConfigLoader();
+
28 ~ConfigLoader();
+
29
+
39 void init();
+
47 void setCustomConfig(const std::optional<std::string>& path);
+
53 json getFinalConfig();
+
54
+
55private:
+
56
+
57 std::optional<std::string> customConfigPath;
+
58 json finalConfig;
+
59
+
60 json loadConfigFromJSON(const std::string& path);
+
61 json mergeConfigs(json baseConfig, json customConfig); //<! Merges 2 config.json files, prioritising the custom to the base one
+
62};
+
+
+
+ + + + diff --git a/Constants_8h_source.html b/Constants_8h_source.html index e7a1c91..2d64872 100644 --- a/Constants_8h_source.html +++ b/Constants_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/Constants.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
DataComponent.h
+
+
+
1#pragma once
+
2
+
3#include <map>
+
4#include <any>
+
5#include <string>
+
6#include <optional>
+
7#include "Component.h"
+
8
+
+
9class DataComponent : public Component
+
10{
+
11public:
+
12 DataComponent() {};
+
13 ~DataComponent() {};
+
20 template <typename T>
+
21 void setEntry(const std::string& key, const T& value) { dataMap.insert_or_assign(key, value); }
+
22
+
29 template<typename T>
+
+
30 std::optional<T> getEntry(std::string key) const {
+
31 if (!this->dataMap.contains(key)) return std::nullopt;
+
32 const std::any& value = this->dataMap.at(key);
+
33 if (value.type() != typeid(T)) { return std::nullopt; }
+
34 return std::any_cast<T>(value);
+
35 }
+
+
36private:
+
37 std::map<std::string, std::any> dataMap;
+
38};
+
+
Definition Component.h:8
+
void setEntry(const std::string &key, const T &value)
Set a key-value pair of any type in the data map.
Definition DataComponent.h:21
+
std::optional< T > getEntry(std::string key) const
Get a value of type T from the data map.
Definition DataComponent.h:30
+
+
+ + + + diff --git a/Defines_8h_source.html b/Defines_8h_source.html index 63229c4..d9a4fec 100644 --- a/Defines_8h_source.html +++ b/Defines_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/Defines.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
EventManager.h
+
+
+
1#pragma once
+
2
+
3#include <functional>
+
4#include <initializer_list>
+
5#include <map>
+
6#include <vector>
+
7
+
8#include "SDL3/SDL_events.h"
+
9#include "SDL3/SDL_init.h"
+
10
+
11typedef std::function<SDL_AppResult(SDL_EventType, SDL_Event* const)> EventListener;
+
12
+
+ +
14public:
+ +
16
+
17 void registerListener(EventListener listener, std::initializer_list<Uint32> eventTypes);
+
18 SDL_AppResult handleEvent(SDL_Event* const event);
+
19private:
+
20 std::map<Uint32, std::vector<EventListener>> eventListeners = std::map<Uint32, std::vector<EventListener>>();
+
21};
+
+
EventManager()
Definition EventManager.cpp:13
+
+
+ + + + diff --git a/GameFactory_8h_source.html b/GameFactory_8h_source.html index a214a36..c2fafce 100644 --- a/GameFactory_8h_source.html +++ b/GameFactory_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/GameFactory.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InputManager.h
+
+
+
1#pragma once
+
2
+
3#include <SDL3/SDL_events.h>
+
4#include <SDL3/SDL_init.h>
+
5#include <SDL3/SDL.h>
+
6#include <map>
+
7#include <string>
+
8#include <functional>
+
9#include <vector>
+
10#include <iostream>
+
11
+
+
12class InputManager {
+
13public:
+
14 enum class EventType {
+
15 KeyDown,
+
16 KeyUp
+
17 };
+
18
+
19 enum class Key
+
20 {
+
21 UP,
+
22 DOWN,
+
23 LEFT,
+
24 RIGHT,
+
25 SPACE,
+
26 ENTER,
+
27 ESCAPE,
+
28 TAB,
+
29 BACKSPACE,
+
30 DELETE,
+
31 HOME,
+
32 END,
+
33 PAGE_UP,
+
34 PAGE_DOWN,
+
35 INSERT,
+
36 CAPS_LOCK,
+
37 LEFT_SHIFT,
+
38 RIGHT_SHIFT,
+
39 LEFT_CTRL,
+
40 RIGHT_CTRL,
+
41 LEFT_ALT,
+
42 RIGHT_ALT,
+
43 F1,
+
44 F2,
+
45 F3,
+
46 F4,
+
47 F5,
+
48 F6,
+
49 F7,
+
50 F8,
+
51 F9,
+
52 F10,
+
53 F11,
+
54 F12,
+
55 A,
+
56 B,
+
57 C,
+
58 D,
+
59 E,
+
60 F,
+
61 G,
+
62 H,
+
63 I,
+
64 J,
+
65 K,
+
66 L,
+
67 M,
+
68 N,
+
69 O,
+
70 P,
+
71 Q,
+
72 R,
+
73 S,
+
74 T,
+
75 U,
+
76 V,
+
77 W,
+
78 X,
+
79 Y,
+
80 Z,
+
81 NUM_0,
+
82 NUM_1,
+
83 NUM_2,
+
84 NUM_3,
+
85 NUM_4,
+
86 NUM_5,
+
87 NUM_6,
+
88 NUM_7,
+
89 NUM_8,
+
90 NUM_9,
+
91 LEFT_BRACKET,
+
92 RIGHT_BRACKET,
+
93 SEMICOLON,
+
94 APOSTROPHE,
+
95 COMMA,
+
96 PERIOD,
+
97 SLASH,
+
98 BACKSLASH,
+
99 GRAVE
+
100 };
+
101
+
+
102 struct InputAction {
+
103 std::string name;
+
104 std::vector<Key> bindings;
+
105 std::function<void(bool)> callback;
+
106 };
+
+
107
+
108 InputManager();
+
109 ~InputManager();
+
110
+
111 void init(); // see if necessary
+
112 void processEvents();
+
113 void registerAction(const std::string& actionName, const std::vector<Key>& keys, std::function<void(bool)> callback, const std::string& context);
+
114
+
115 void setActiveContext(const std::string& context);
+
116 std::string getActiveContext() const;
+
117
+
118 //void rebindAction(const std::string& actionName, const std::vector<Key>& newBindings, const std::string& context);
+
119 //void removeBindings(const std::string& actionName, const std::string& context);
+
120 //std::vector<Key> getBindings(const std::string& actionName, const std::string& context) const;
+
121 std::vector<InputAction*> getActionsByKey(const Key key) const;
+
122
+
123 SDL_AppResult handleEvent(SDL_EventType type, SDL_Event* const event);
+
124
+
125 void initKeyMap();
+
126private:
+
127 // TODO: flesh this out to avoid loops in process actions
+
128 // additionally to actionsByContext, not instead
+
129 std::map<std::string, std::map<Key, std::vector<InputAction*>>> actionsByContextAndKey;
+
130
+
131 std::map<Key, SDL_Scancode> keyMap;
+
132 std::string activeContext;
+
133};
+
+
134
+
135std::ostream& operator<<(std::ostream& os, InputManager::Key key);
+
136std::ostream& operator<<(std::ostream& os, const InputManager::InputAction& action);
+
137std::ostream& operator<<(std::ostream& os, const InputManager::InputAction* action);
+
138std::ostream& operator<<(std::ostream& os, const std::vector<InputManager::InputAction>& actions);
+
139std::ostream& operator<<(std::ostream& os, const std::vector<InputManager::InputAction*>& actions);
+
Definition InputManager.h:102
+
+
+ + + + diff --git a/InteractionComponent_8h_source.html b/InteractionComponent_8h_source.html new file mode 100644 index 0000000..16d4491 --- /dev/null +++ b/InteractionComponent_8h_source.html @@ -0,0 +1,159 @@ + + + + + + + + + VEGO-Engine: include/InteractionComponent.h Source File + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionComponent.h
+
+
+
1#pragma once
+
2
+
3#include "Component.h"
+
4#include "InteractionListener.h"
+
5
+
6#include <functional>
+
7
+
+
8class InteractionComponent : public Component, public InteractionListener
+
9{
+
10public:
+
15 InteractionComponent(std::function<void(void*,void*)> callback);
+
16
+
20 void interact(void* actor, void* data) override;
+
21
+
25 std::shared_ptr<Vector2D> getPosition() override;
+
26private:
+
27 std::function<void(void*,void*)> interactionCallback;
+
28};
+
+
Definition Component.h:8
+
std::shared_ptr< Vector2D > getPosition() override
Internal function to use as reference for targeting.
Definition InteractionComponent.cpp:16
+
void interact(void *actor, void *data) override
Internal function to be called when an interaction event is triggered.
Definition InteractionComponent.cpp:10
+
InteractionComponent(std::function< void(void *, void *)> callback)
Constructor for the InteractionComponent.
Definition InteractionComponent.cpp:5
+
+
+ + + + diff --git a/InteractionEventdataStruct_8h_source.html b/InteractionEventdataStruct_8h_source.html new file mode 100644 index 0000000..0a509f8 --- /dev/null +++ b/InteractionEventdataStruct_8h_source.html @@ -0,0 +1,161 @@ + + + + + + + + + VEGO-Engine: include/InteractionEventdataStruct.h Source File + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionEventdataStruct.h
+
+
+
1#pragma once
+
2
+
3#include "Entity.h"
+
4#include "InteractionListener.h"
+
5#include "InteractionManager.h"
+
6#include "Vector2D.h"
+
7#include <cstdint>
+
8#include <memory>
+
9
+
+ +
16 void* actor;
+
18 void* data;
+
20 std::weak_ptr<InteractionListener> target = std::weak_ptr<InteractionListener>();
+
22 std::shared_ptr<Vector2D> targetingReference = nullptr;
+
25 uint8_t strategy = 0; // int since enum would be impossibling user defined targetingStrategies
+
26
+
27 void triggerEvent();
+
28};
+
+
Struct to hold data for interaction events. This struct is used to pass data to the interaction manag...
Definition InteractionEventdataStruct.h:14
+
std::weak_ptr< InteractionListener > target
The target of the interaction, e.g. InteractionComponent of an Entity. Is required if strategy is set...
Definition InteractionEventdataStruct.h:20
+
void * actor
Arbitray data to pass to the interaction listener. Can for example be an Entity ptr to represent the ...
Definition InteractionEventdataStruct.h:16
+
std::shared_ptr< Vector2D > targetingReference
Coordinates from which to base targeting on. Is required if strategy is not set to 0 (none)
Definition InteractionEventdataStruct.h:22
+
void * data
The data to pass to the interaction listener. Can be any type of pointer.
Definition InteractionEventdataStruct.h:18
+
uint8_t strategy
Definition InteractionEventdataStruct.h:25
+
+
+ + + + diff --git a/InteractionListener_8h_source.html b/InteractionListener_8h_source.html new file mode 100644 index 0000000..2b0d4ca --- /dev/null +++ b/InteractionListener_8h_source.html @@ -0,0 +1,154 @@ + + + + + + + + + VEGO-Engine: include/InteractionListener.h Source File + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionListener.h
+
+
+
1#pragma once
+
2
+
3#include "Vector2D.h"
+
4#include <memory>
+
5
+
+
6class InteractionListener {
+
7public:
+
8 InteractionListener() { };
+
9 virtual ~InteractionListener() { };
+
10
+
11 virtual void interact(void* actor, void* data) = 0;
+
12 virtual std::shared_ptr<Vector2D> getPosition() // required for targeting strategy, return null to only allow explicit targeting
+
13 {
+
14 return nullptr;
+
15 }
+
16
+
17};
+
+
+
+ + + + diff --git a/InteractionManager_8h_source.html b/InteractionManager_8h_source.html new file mode 100644 index 0000000..46514ed --- /dev/null +++ b/InteractionManager_8h_source.html @@ -0,0 +1,173 @@ + + + + + + + + + VEGO-Engine: include/InteractionManager.h Source File + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionManager.h
+
+
+
1#pragma once
+
2
+
3#include "InteractionListener.h"
+
4
+
5#include "SDL3/SDL_events.h"
+
6#include "SDL3/SDL_init.h"
+
7#include <cstdint>
+
8#include <functional>
+
9#include <memory>
+
10#include <vector>
+
11#include <ranges>
+
12
+
13// TODO: ranges concept to avoid to<vector> in cpp
+
14typedef std::function<std::shared_ptr<InteractionListener>(Vector2D*, std::vector<std::shared_ptr<InteractionListener>>)> TargetingFunc;
+
15
+
+
16class InteractionManager {
+
17public:
+
18 InteractionManager();
+
19 InteractionManager (const InteractionManager&) = delete;
+
20 InteractionManager& operator= (const InteractionManager&) = delete;
+
21
+
22 enum class TargetingStrategy : uint8_t {
+
23 none = 0,
+
24 closest,
+
25 manhattenDistance
+
26 };
+
27
+
28 SDL_AppResult handleInteract(SDL_EventType type, SDL_Event* const event);
+
29 void registerListener(std::weak_ptr<InteractionListener> listener);
+
30 uint8_t registerTargetingFunc(TargetingFunc func);
+
31private:
+
32
+
33 std::vector<std::weak_ptr<InteractionListener>> listeners;
+
34 std::array<TargetingFunc, 256> targetingFuncs;
+
35};
+
+
Definition Vector2D.h:7
+
+
+ + + + diff --git a/Manager_8h_source.html b/Manager_8h_source.html index a963c5c..7a653b8 100644 --- a/Manager_8h_source.html +++ b/Manager_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/Manager.h Source File @@ -58,7 +58,7 @@ - + @@ -58,7 +58,7 @@ - +
@@ -119,7 +119,7 @@ $(function(){initNavTree('PowerupComponent_8h_source.html',''); initResizable(tr
-
PowerupComponent.h
+
PickupComponent.h
1#pragma once
@@ -128,28 +128,28 @@ $(function(){initNavTree('PowerupComponent_8h_source.html',''); initResizable(tr
4#include "Component.h"
5
- +
7{
8public:
-
9 PowerupComponent(std::function<void (Entity*)> func);
- -
11
-
12 void update() override;
-
13
-
14private:
-
15 std::function<void (Entity*)> pickupFunc;
-
16};
+
13 PickupComponent(std::function<void (Entity*)> func);
+ +
15
+
16 void update(uint_fast16_t diffTime) override;
+
17
+
18private:
+
19 std::function<void (Entity*)> pickupFunc;
+
20};
-
Definition Component.h:6
+
Definition Component.h:8
Main class for any object in game, stores associations, labeling and components.
Definition Entity.h:35
-
Definition PowerupComponent.h:7
+
PickupComponent(std::function< void(Entity *)> func)
Construct a new Powerup Component object.
Definition PickupComponent.cpp:14
diff --git a/AssetManager_8h_source.html b/PickupManager_8h_source.html similarity index 56% rename from AssetManager_8h_source.html rename to PickupManager_8h_source.html index 6a96e60..6912973 100644 --- a/AssetManager_8h_source.html +++ b/PickupManager_8h_source.html @@ -4,9 +4,9 @@ - + - VEGO-Engine: include/AssetManager.h Source File + VEGO-Engine: include/PickupManager.h Source File @@ -58,7 +58,7 @@ - +
@@ -119,74 +119,50 @@ $(function(){initNavTree('AssetManager_8h_source.html',''); initResizable(true);
-
AssetManager.h
+
PickupManager.h
1#pragma once
-
2#include <SDL_render.h>
-
3#include <SDL_mixer.h>
+
2#include <SDL3/SDL_render.h>
+
3#include <SDL3_mixer/SDL_mixer.h>
4#include <map>
5#include <string>
6#include <functional>
7
8#include "Entity.h"
-
9
-
10class Vector2D;
-
11class Manager;
-
12
-
13enum class PowerupType
-
14{
-
15 HEART,
-
16 WALKINGSPEED,
-
17 SHOOTINGSPEED
-
18};
-
19
-
- -
21{
-
22public:
-
23
-
24 AssetManager(Manager* manager);
- +
9#include "SoundEffects.h"
+
10
+
11class Vector2D;
+
12class Manager;
+
13
+
+
14class PickupManager
+
15{
+
16public:
+
17
+
18 PickupManager(Manager* manager);
+
19 ~PickupManager();
+
20
+
21 void createPowerup(Vector2D pos, std::function<void (Entity*)> pickupFunc, Textures texture);
+
22
+
23 Vector2D calculateSpawnPosition();
+
24
+
25private:
26
-
27 void createProjectile(Vector2D pos, Vector2D velocity, int scale, int range, int speed, const char* texturePath, Entity* owner);
-
28 void createPowerup(Vector2D pos, std::function<void (Entity*)> pickupFunc, std::string texturePath);
-
29
- -
37 template <typename T> [[deprecated]] T calculateRandomType(int amount);
-
38
-
39 //texture management
-
40 void addTexture(std::string id, const char* path);
-
41
-
42 // sound management
-
43 void addSoundEffect(std::string id, const char* path);
-
44
-
45 void addMusic(std::string id, const char* path);
-
46
-
47 SDL_Texture* getTexture(std::string id);
-
48 Mix_Chunk* getSound(std::string id);
-
49 Mix_Music* getMusic(std::string id);
-
50
-
51private:
-
52
-
53 Manager* man;
-
54 std::map<std::string, SDL_Texture*> textures;
-
55 std::map<std::string, Mix_Chunk*> soundEffects;
-
56 std::map<std::string, Mix_Music*> music;
-
57};
+
27 Manager* man;
+
28};
-
Definition AssetManager.h:21
-
Vector2D calculateSpawnPosition(Vector2D size, Vector2D spawnArea)
Calculates a random spawn position for an object within a given area.
Definition AssetManager.cpp:78
Main class for any object in game, stores associations, labeling and components.
Definition Entity.h:35
Is responsible for managing all entities.
Definition Manager.h:23
+
Forward declaration of the Textures enum class.
Definition Vector2D.h:7
diff --git a/PlayerComponent_8h_source.html b/PlayerComponent_8h_source.html index ac7e2e0..d8a8885 100644 --- a/PlayerComponent_8h_source.html +++ b/PlayerComponent_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/PlayerComponent.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
SoundEffects.h
+
+
+
1#pragma once
+
2
+
3enum class SoundEffects;
+
+
+ + + + diff --git a/SoundManager_8h_source.html b/SoundManager_8h_source.html index bca6078..59c2bd1 100644 --- a/SoundManager_8h_source.html +++ b/SoundManager_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/SoundManager.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Textures.h
+
+
+
1#pragma once
+
2
+
13
+
14enum class Textures;
+
Forward declaration of the Textures enum class.
+
+
+ + + + diff --git a/TileComponent_8h_source.html b/TileComponent_8h_source.html index ff18b23..a5b74d0 100644 --- a/TileComponent_8h_source.html +++ b/TileComponent_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/TileComponent.h Source File @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
VEGO_Event.h
+
+
+
1#pragma once
+
2
+
3#include <SDL3/SDL_stdinc.h>
+
4
+
5namespace vego {
+
6 extern Uint32 VEGO_Event_Interaction;
+
7}
+
+
+ + + + diff --git a/Vector2D_8h_source.html b/Vector2D_8h_source.html index 0838e28..3c80f4a 100644 --- a/Vector2D_8h_source.html +++ b/Vector2D_8h_source.html @@ -4,7 +4,7 @@ - + VEGO-Engine: include/Vector2D.h Source File @@ -58,7 +58,7 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - -
-
VEGO-Engine -  0.1 -
-
-
- - - - - - - - -
-
- -
-
-
- -
- -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
- -
AssetManager Class Reference
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

AssetManager (Manager *manager)
 
-void createProjectile (Vector2D pos, Vector2D velocity, int scale, int range, int speed, const char *texturePath, Entity *owner)
 
-void createPowerup (Vector2D pos, std::function< void(Entity *)> pickupFunc, std::string texturePath)
 
Vector2D calculateSpawnPosition (Vector2D size, Vector2D spawnArea)
 Calculates a random spawn position for an object within a given area.
 
-template<typename T >
calculateRandomType (int amount)
 
-void addTexture (std::string id, const char *path)
 
-void addSoundEffect (std::string id, const char *path)
 
-void addMusic (std::string id, const char *path)
 
-SDL_Texture * getTexture (std::string id)
 
-Mix_Chunk * getSound (std::string id)
 
-Mix_Music * getMusic (std::string id)
 
-

Member Function Documentation

- -

◆ calculateSpawnPosition()

- -
-
- - - - - - - - - - - -
Vector2D AssetManager::calculateSpawnPosition (Vector2D size,
Vector2D spawnArea )
-
- -

Calculates a random spawn position for an object within a given area.

-
Parameters
- - - -
sizeThe size (collision box) of the object
spawnAreaThe area within which a spawn position will be calculated
-
-
-
Returns
Spawn Coordinates for the object
- -
-
-
The documentation for this class was generated from the following files: -
-
- - - - diff --git a/classAssetManager.js b/classAssetManager.js deleted file mode 100644 index 7e925c4..0000000 --- a/classAssetManager.js +++ /dev/null @@ -1,4 +0,0 @@ -var classAssetManager = -[ - [ "calculateSpawnPosition", "classAssetManager.html#a0d3e4eb90ca0392825d0e6b4b26fa570", null ] -]; \ No newline at end of file diff --git a/classColliderComponent-members.html b/classColliderComponent-members.html index a9ffdfd..1448abb 100644 --- a/classColliderComponent-members.html +++ b/classColliderComponent-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ConfigLoader Member List
+
+
+ +

This is the complete list of members for ConfigLoader, including all inherited members.

+ + + +
ConfigLoader() (defined in ConfigLoader)ConfigLoader
~ConfigLoader() (defined in ConfigLoader)ConfigLoader
+
+ + + + diff --git a/classConfigLoader.html b/classConfigLoader.html new file mode 100644 index 0000000..03c2b1c --- /dev/null +++ b/classConfigLoader.html @@ -0,0 +1,157 @@ + + + + + + + + + VEGO-Engine: ConfigLoader Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
ConfigLoader Class Reference
+
+
+ +

Enables configuration of specific engine variables via a custom JSON file. + More...

+ +

#include <ConfigLoader.h>

+

Detailed Description

+

Enables configuration of specific engine variables via a custom JSON file.

+

The Config loader is responsible to handling customization for engine parameters like the window icon, window title, ... through json files.

+

It includes a standard config file and the option to add a custom one by overwriting the setConfigFilePath() function within the implementation of the Game class. Those files get merged, with a priorization on the parameters set within the custom config file.

+

The currently available config parameters with their default values are:

{
+
"fullscreen": false,
+
"title": "VGG (Very Good Game)",
+
"screen_height": 600,
+
"screen_width": 800,
+
"icon": "./engine/internalAssets/iconImage.bmp"
+
}
+

The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classDataComponent-members.html b/classDataComponent-members.html new file mode 100644 index 0000000..d32d3b3 --- /dev/null +++ b/classDataComponent-members.html @@ -0,0 +1,145 @@ + + + + + + + + + VEGO-Engine: Member List + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
DataComponent Member List
+
+
+ +

This is the complete list of members for DataComponent, including all inherited members.

+ + + + + + + + + +
DataComponent() (defined in DataComponent)DataComponentinline
entity (defined in Component)Component
getEntry(std::string key) constDataComponentinline
init() (defined in Component)Componentinlinevirtual
setEntry(const std::string &key, const T &value)DataComponentinline
update(uint_fast16_t diffTime) (defined in Component)Componentinlinevirtual
~Component()=default (defined in Component)Componentvirtual
~DataComponent() (defined in DataComponent)DataComponentinline
+
+ + + + diff --git a/classDataComponent.html b/classDataComponent.html new file mode 100644 index 0000000..9b98d54 --- /dev/null +++ b/classDataComponent.html @@ -0,0 +1,253 @@ + + + + + + + + + VEGO-Engine: DataComponent Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
DataComponent Class Reference
+
+
+
+Inheritance diagram for DataComponent:
+
+
+
[legend]
+
+Collaboration diagram for DataComponent:
+
+
+
[legend]
+ + + + + + + + + + + + + + + +

+Public Member Functions

template<typename T>
void setEntry (const std::string &key, const T &value)
 Set a key-value pair of any type in the data map.
 
template<typename T>
std::optional< T > getEntry (std::string key) const
 Get a value of type T from the data map.
 
- Public Member Functions inherited from Component
+virtual void init ()
 
virtual void update (uint_fast16_t diffTime)
 
+ + + + +

+Additional Inherited Members

- Public Attributes inherited from Component
+Entityentity
 
+

Member Function Documentation

+ +

◆ getEntry()

+ +
+
+
+template<typename T>
+ + + + + +
+ + + + + + + +
std::optional< T > DataComponent::getEntry (std::string key) const
+
+inline
+
+ +

Get a value of type T from the data map.

+

e.g. getEntry<int>("speed"); in this case the key is "speed" and the value is returned as an integer

Parameters
+ + +
keyThe name to retrieve the value from
+
+
+
Returns
An optional of type T containing the value if it exists and matches in typeid, otherwise std::nullopt
+ +
+
+ +

◆ setEntry()

+ +
+
+
+template<typename T>
+ + + + + +
+ + + + + + + + + + + +
void DataComponent::setEntry (const std::string & key,
const T & value )
+
+inline
+
+ +

Set a key-value pair of any type in the data map.

+

e.g. setEntry("speed", 180); in this case the key is "speed" and the value is set to an integer of 180

Parameters
+ + + +
keyThe name to store the value under
valueThe value to store of type T
+
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/classDataComponent.js b/classDataComponent.js new file mode 100644 index 0000000..44c3d22 --- /dev/null +++ b/classDataComponent.js @@ -0,0 +1,5 @@ +var classDataComponent = +[ + [ "getEntry", "classDataComponent.html#a6e71b0bec578a208eb716676e3ccf667", null ], + [ "setEntry", "classDataComponent.html#a1dd53c6cb91e572090c2b6853881f8c9", null ] +]; \ No newline at end of file diff --git a/classPowerupComponent__coll__graph.map b/classDataComponent__coll__graph.map similarity index 61% rename from classPowerupComponent__coll__graph.map rename to classDataComponent__coll__graph.map index 6f712f3..ef0a4c5 100644 --- a/classPowerupComponent__coll__graph.map +++ b/classDataComponent__coll__graph.map @@ -1,7 +1,7 @@ - - - - - - + + + + + + diff --git a/classDataComponent__coll__graph.md5 b/classDataComponent__coll__graph.md5 new file mode 100644 index 0000000..437a49b --- /dev/null +++ b/classDataComponent__coll__graph.md5 @@ -0,0 +1 @@ +a3df54aec2c2e05909bca8bcb97ab568 \ No newline at end of file diff --git a/classPowerupComponent__coll__graph.svg b/classDataComponent__coll__graph.svg similarity index 62% rename from classPowerupComponent__coll__graph.svg rename to classDataComponent__coll__graph.svg index 4793e3d..0c1ecfa 100644 --- a/classPowerupComponent__coll__graph.svg +++ b/classDataComponent__coll__graph.svg @@ -3,9 +3,9 @@ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - + + @@ -18,13 +18,13 @@ -PowerupComponent +DataComponent Node1 - -PowerupComponent + +DataComponent @@ -32,8 +32,8 @@ Node2 - -Component + +Component @@ -41,8 +41,8 @@ Node2->Node1 - - + + @@ -50,8 +50,8 @@ Node3 - -Entity + +Entity @@ -59,11 +59,11 @@ Node3->Node2 - - + + - entity + entity diff --git a/classPowerupComponent__coll__graph_org.svg b/classDataComponent__coll__graph_org.svg similarity index 52% rename from classPowerupComponent__coll__graph_org.svg rename to classDataComponent__coll__graph_org.svg index 6834fae..1598516 100644 --- a/classPowerupComponent__coll__graph_org.svg +++ b/classDataComponent__coll__graph_org.svg @@ -3,17 +3,17 @@ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - + + -PowerupComponent +DataComponent Node1 - -PowerupComponent + +DataComponent @@ -21,8 +21,8 @@ Node2 - -Component + +Component @@ -30,8 +30,8 @@ Node2->Node1 - - + + @@ -39,8 +39,8 @@ Node3 - -Entity + +Entity @@ -48,11 +48,11 @@ Node3->Node2 - - + + - entity + entity diff --git a/classPowerupComponent__inherit__graph.map b/classDataComponent__inherit__graph.map similarity index 58% rename from classPowerupComponent__inherit__graph.map rename to classDataComponent__inherit__graph.map index 30c7081..8054cb2 100644 --- a/classPowerupComponent__inherit__graph.map +++ b/classDataComponent__inherit__graph.map @@ -1,5 +1,5 @@ - - - - + + + + diff --git a/classDataComponent__inherit__graph.md5 b/classDataComponent__inherit__graph.md5 new file mode 100644 index 0000000..4f2abcb --- /dev/null +++ b/classDataComponent__inherit__graph.md5 @@ -0,0 +1 @@ +db4127736f5dab94ce240d567f04a469 \ No newline at end of file diff --git a/classDataComponent__inherit__graph.svg b/classDataComponent__inherit__graph.svg new file mode 100644 index 0000000..ee33da0 --- /dev/null +++ b/classDataComponent__inherit__graph.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + +DataComponent + + +Node1 + + +DataComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + + + + + + diff --git a/classDataComponent__inherit__graph_org.svg b/classDataComponent__inherit__graph_org.svg new file mode 100644 index 0000000..1d10f21 --- /dev/null +++ b/classDataComponent__inherit__graph_org.svg @@ -0,0 +1,39 @@ + + + + + + +DataComponent + + +Node1 + + +DataComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + diff --git a/classEntity-members.html b/classEntity-members.html index 758116b..eb63059 100644 --- a/classEntity-members.html +++ b/classEntity-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
EventManager Member List
+
+
+ +

This is the complete list of members for EventManager, including all inherited members.

+ + + + +
EventManager()EventManager
handleEvent(SDL_Event *const event) (defined in EventManager)EventManager
registerListener(EventListener listener, std::initializer_list< Uint32 > eventTypes) (defined in EventManager)EventManager
+
+ + + + diff --git a/classEventManager.html b/classEventManager.html new file mode 100644 index 0000000..96aee77 --- /dev/null +++ b/classEventManager.html @@ -0,0 +1,173 @@ + + + + + + + + + VEGO-Engine: EventManager Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
EventManager Class Reference
+
+
+ + + + + + + + +

+Public Member Functions

 EventManager ()
 
+void registerListener (EventListener listener, std::initializer_list< Uint32 > eventTypes)
 
+SDL_AppResult handleEvent (SDL_Event *const event)
 
+

Constructor & Destructor Documentation

+ +

◆ EventManager()

+ +
+
+ + + + + + + +
EventManager::EventManager ()
+
+

\TODO: from c++26 you (should be able to) can get the amount of name values in an enum

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classEventManager.js b/classEventManager.js new file mode 100644 index 0000000..63b78aa --- /dev/null +++ b/classEventManager.js @@ -0,0 +1,4 @@ +var classEventManager = +[ + [ "EventManager", "classEventManager.html#a89099b22114f158b5c530edfea52371d", null ] +]; \ No newline at end of file diff --git a/classGame-members.html b/classGame-members.html index b5e8e1c..fb7d3e4 100644 --- a/classGame-members.html +++ b/classGame-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InputManager Member List
+
+
+ +

This is the complete list of members for InputManager, including all inherited members.

+ + + + + + + + + + + + + +
EventType enum name (defined in InputManager)InputManager
getActionsByKey(const Key key) const (defined in InputManager)InputManager
getActiveContext() const (defined in InputManager)InputManager
handleEvent(SDL_EventType type, SDL_Event *const event) (defined in InputManager)InputManager
init() (defined in InputManager)InputManager
initKeyMap() (defined in InputManager)InputManager
InputManager() (defined in InputManager)InputManager
Key enum name (defined in InputManager)InputManager
processEvents() (defined in InputManager)InputManager
registerAction(const std::string &actionName, const std::vector< Key > &keys, std::function< void(bool)> callback, const std::string &context) (defined in InputManager)InputManager
setActiveContext(const std::string &context) (defined in InputManager)InputManager
~InputManager() (defined in InputManager)InputManager
+
+ + + + diff --git a/classInputManager.html b/classInputManager.html new file mode 100644 index 0000000..e6e35cd --- /dev/null +++ b/classInputManager.html @@ -0,0 +1,286 @@ + + + + + + + + + VEGO-Engine: InputManager Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InputManager Class Reference
+
+
+ + + + +

+Classes

struct  InputAction
 
+ + + + + +

+Public Types

enum class  EventType { KeyDown +, KeyUp + }
 
enum class  Key {
+  UP +, DOWN +, LEFT +, RIGHT +,
+  SPACE +, ENTER +, ESCAPE +, TAB +,
+  BACKSPACE +, DELETE +, HOME +, END +,
+  PAGE_UP +, PAGE_DOWN +, INSERT +, CAPS_LOCK +,
+  LEFT_SHIFT +, RIGHT_SHIFT +, LEFT_CTRL +, RIGHT_CTRL +,
+  LEFT_ALT +, RIGHT_ALT +, F1 +, F2 +,
+  F3 +, F4 +, F5 +, F6 +,
+  F7 +, F8 +, F9 +, F10 +,
+  F11 +, F12 +, A +, B +,
+  C +, D +, E +, F +,
+  G +, H +, I +, J +,
+  K +, L +, M +, N +,
+  O +, P +, Q +, R +,
+  S +, T +, U +, V +,
+  W +, X +, Y +, Z +,
+  NUM_0 +, NUM_1 +, NUM_2 +, NUM_3 +,
+  NUM_4 +, NUM_5 +, NUM_6 +, NUM_7 +,
+  NUM_8 +, NUM_9 +, LEFT_BRACKET +, RIGHT_BRACKET +,
+  SEMICOLON +, APOSTROPHE +, COMMA +, PERIOD +,
+  SLASH +, BACKSLASH +, GRAVE +
+ }
 
+ + + + + + + + + + + + + + + + + +

+Public Member Functions

+void init ()
 
+void processEvents ()
 
+void registerAction (const std::string &actionName, const std::vector< Key > &keys, std::function< void(bool)> callback, const std::string &context)
 
+void setActiveContext (const std::string &context)
 
+std::string getActiveContext () const
 
+std::vector< InputAction * > getActionsByKey (const Key key) const
 
+SDL_AppResult handleEvent (SDL_EventType type, SDL_Event *const event)
 
+void initKeyMap ()
 
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classInputManager.js b/classInputManager.js new file mode 100644 index 0000000..c7803a2 --- /dev/null +++ b/classInputManager.js @@ -0,0 +1,4 @@ +var classInputManager = +[ + [ "InputAction", "structInputManager_1_1InputAction.html", null ] +]; \ No newline at end of file diff --git a/classInteractionComponent-members.html b/classInteractionComponent-members.html new file mode 100644 index 0000000..3e321f0 --- /dev/null +++ b/classInteractionComponent-members.html @@ -0,0 +1,146 @@ + + + + + + + + + VEGO-Engine: Member List + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionComponent Member List
+
+
+ +

This is the complete list of members for InteractionComponent, including all inherited members.

+ + + + + + + + + + +
entity (defined in Component)Component
getPosition() overrideInteractionComponentvirtual
init() (defined in Component)Componentinlinevirtual
interact(void *actor, void *data) overrideInteractionComponentvirtual
InteractionComponent(std::function< void(void *, void *)> callback)InteractionComponent
InteractionListener() (defined in InteractionListener)InteractionListenerinline
update(uint_fast16_t diffTime) (defined in Component)Componentinlinevirtual
~Component()=default (defined in Component)Componentvirtual
~InteractionListener() (defined in InteractionListener)InteractionListenerinlinevirtual
+
+ + + + diff --git a/classInteractionComponent.html b/classInteractionComponent.html new file mode 100644 index 0000000..28acb85 --- /dev/null +++ b/classInteractionComponent.html @@ -0,0 +1,267 @@ + + + + + + + + + VEGO-Engine: InteractionComponent Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InteractionComponent Class Reference
+
+
+
+Inheritance diagram for InteractionComponent:
+
+
+
[legend]
+
+Collaboration diagram for InteractionComponent:
+
+
+
[legend]
+ + + + + + + + + + + + + + + + +

+Public Member Functions

 InteractionComponent (std::function< void(void *, void *)> callback)
 Constructor for the InteractionComponent.
 
void interact (void *actor, void *data) override
 Internal function to be called when an interaction event is triggered.
 
std::shared_ptr< Vector2DgetPosition () override
 Internal function to use as reference for targeting.
 
- Public Member Functions inherited from Component
+virtual void init ()
 
virtual void update (uint_fast16_t diffTime)
 
+ + + + +

+Additional Inherited Members

- Public Attributes inherited from Component
+Entityentity
 
+

Constructor & Destructor Documentation

+ +

◆ InteractionComponent()

+ +
+
+ + + + + + + +
InteractionComponent::InteractionComponent (std::function< void(void *, void *)> callback)
+
+ +

Constructor for the InteractionComponent.

+
Parameters
+ + +
callbackA function to be called when an interaction event is triggered. void* actor, void* data are passed to the callback function from InteractionEventdataStruct.
+
+
+ +
+
+

Member Function Documentation

+ +

◆ getPosition()

+ +
+
+ + + + + +
+ + + + + + + +
std::shared_ptr< Vector2D > InteractionComponent::getPosition ()
+
+overridevirtual
+
+ +

Internal function to use as reference for targeting.

+ +

Reimplemented from InteractionListener.

+ +
+
+ +

◆ interact()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
void InteractionComponent::interact (void * actor,
void * data )
+
+overridevirtual
+
+ +

Internal function to be called when an interaction event is triggered.

+ +

Implements InteractionListener.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classInteractionComponent.js b/classInteractionComponent.js new file mode 100644 index 0000000..c60e24f --- /dev/null +++ b/classInteractionComponent.js @@ -0,0 +1,6 @@ +var classInteractionComponent = +[ + [ "InteractionComponent", "classInteractionComponent.html#af60fed077b6f92c22f2246c2464923ed", null ], + [ "getPosition", "classInteractionComponent.html#a88ef331d132baf4f9a4c24544077f9f2", null ], + [ "interact", "classInteractionComponent.html#ab6358a875d127206cb5f867f93e05368", null ] +]; \ No newline at end of file diff --git a/classInteractionComponent__coll__graph.map b/classInteractionComponent__coll__graph.map new file mode 100644 index 0000000..1be0016 --- /dev/null +++ b/classInteractionComponent__coll__graph.map @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/classInteractionComponent__coll__graph.md5 b/classInteractionComponent__coll__graph.md5 new file mode 100644 index 0000000..c6fc3c4 --- /dev/null +++ b/classInteractionComponent__coll__graph.md5 @@ -0,0 +1 @@ +a048cb81d663152525a05154ec589f78 \ No newline at end of file diff --git a/classInteractionComponent__coll__graph.svg b/classInteractionComponent__coll__graph.svg new file mode 100644 index 0000000..ff9739e --- /dev/null +++ b/classInteractionComponent__coll__graph.svg @@ -0,0 +1,102 @@ + + + + + + + + + + + + +InteractionComponent + + +Node1 + + +InteractionComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +Entity + + + + + +Node3->Node2 + + + + + + entity + + + +Node4 + + +InteractionListener + + + + + +Node4->Node1 + + + + + + + + + + + + + diff --git a/classInteractionComponent__coll__graph_org.svg b/classInteractionComponent__coll__graph_org.svg new file mode 100644 index 0000000..b8e1874 --- /dev/null +++ b/classInteractionComponent__coll__graph_org.svg @@ -0,0 +1,76 @@ + + + + + + +InteractionComponent + + +Node1 + + +InteractionComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +Entity + + + + + +Node3->Node2 + + + + + + entity + + + +Node4 + + +InteractionListener + + + + + +Node4->Node1 + + + + + + + + diff --git a/classInteractionComponent__inherit__graph.map b/classInteractionComponent__inherit__graph.map new file mode 100644 index 0000000..a078ead --- /dev/null +++ b/classInteractionComponent__inherit__graph.map @@ -0,0 +1,7 @@ + + + + + + + diff --git a/classInteractionComponent__inherit__graph.md5 b/classInteractionComponent__inherit__graph.md5 new file mode 100644 index 0000000..f7dc251 --- /dev/null +++ b/classInteractionComponent__inherit__graph.md5 @@ -0,0 +1 @@ +901a67bbfbd0bdaeba82a37c05b8ee03 \ No newline at end of file diff --git a/classInteractionComponent__inherit__graph.svg b/classInteractionComponent__inherit__graph.svg new file mode 100644 index 0000000..e4a6d17 --- /dev/null +++ b/classInteractionComponent__inherit__graph.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + +InteractionComponent + + +Node1 + + +InteractionComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +InteractionListener + + + + + +Node3->Node1 + + + + + + + + + + + + + diff --git a/classInteractionComponent__inherit__graph_org.svg b/classInteractionComponent__inherit__graph_org.svg new file mode 100644 index 0000000..c6de200 --- /dev/null +++ b/classInteractionComponent__inherit__graph_org.svg @@ -0,0 +1,57 @@ + + + + + + +InteractionComponent + + +Node1 + + +InteractionComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +InteractionListener + + + + + +Node3->Node1 + + + + + + + + diff --git a/classInteractionListener-members.html b/classInteractionListener-members.html new file mode 100644 index 0000000..5372c53 --- /dev/null +++ b/classInteractionListener-members.html @@ -0,0 +1,141 @@ + + + + + + + + + VEGO-Engine: Member List + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionListener Member List
+
+
+ +

This is the complete list of members for InteractionListener, including all inherited members.

+ + + + + +
getPosition() (defined in InteractionListener)InteractionListenerinlinevirtual
interact(void *actor, void *data)=0 (defined in InteractionListener)InteractionListenerpure virtual
InteractionListener() (defined in InteractionListener)InteractionListenerinline
~InteractionListener() (defined in InteractionListener)InteractionListenerinlinevirtual
+
+ + + + diff --git a/classInteractionListener.html b/classInteractionListener.html new file mode 100644 index 0000000..2d1473a --- /dev/null +++ b/classInteractionListener.html @@ -0,0 +1,213 @@ + + + + + + + + + VEGO-Engine: InteractionListener Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InteractionListener Class Referenceabstract
+
+
+
+Inheritance diagram for InteractionListener:
+
+
+
[legend]
+ + + + + + +

+Public Member Functions

virtual void interact (void *actor, void *data)=0
 
virtual std::shared_ptr< Vector2DgetPosition ()
 
+

Member Function Documentation

+ +

◆ getPosition()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::shared_ptr< Vector2D > InteractionListener::getPosition ()
+
+inlinevirtual
+
+ +

Reimplemented in InteractionComponent.

+ +
+
+ +

◆ interact()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void InteractionListener::interact (void * actor,
void * data )
+
+pure virtual
+
+ +

Implemented in InteractionComponent.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/classInteractionListener__inherit__graph.map b/classInteractionListener__inherit__graph.map new file mode 100644 index 0000000..4821253 --- /dev/null +++ b/classInteractionListener__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/classInteractionListener__inherit__graph.md5 b/classInteractionListener__inherit__graph.md5 new file mode 100644 index 0000000..6f9175e --- /dev/null +++ b/classInteractionListener__inherit__graph.md5 @@ -0,0 +1 @@ +654e675829a5fd89f16385cfab2b360f \ No newline at end of file diff --git a/classInteractionListener__inherit__graph.svg b/classInteractionListener__inherit__graph.svg new file mode 100644 index 0000000..2a5336c --- /dev/null +++ b/classInteractionListener__inherit__graph.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + +InteractionListener + + +Node1 + + +InteractionListener + + + + + +Node2 + + +InteractionComponent + + + + + +Node1->Node2 + + + + + + + + + + + + + diff --git a/classInteractionListener__inherit__graph_org.svg b/classInteractionListener__inherit__graph_org.svg new file mode 100644 index 0000000..d38ebbf --- /dev/null +++ b/classInteractionListener__inherit__graph_org.svg @@ -0,0 +1,39 @@ + + + + + + +InteractionListener + + +Node1 + + +InteractionListener + + + + + +Node2 + + +InteractionComponent + + + + + +Node1->Node2 + + + + + + + + diff --git a/classInteractionManager-members.html b/classInteractionManager-members.html new file mode 100644 index 0000000..4a7a3cc --- /dev/null +++ b/classInteractionManager-members.html @@ -0,0 +1,144 @@ + + + + + + + + + VEGO-Engine: Member List + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionManager Member List
+
+
+ +

This is the complete list of members for InteractionManager, including all inherited members.

+ + + + + + + + +
handleInteract(SDL_EventType type, SDL_Event *const event) (defined in InteractionManager)InteractionManager
InteractionManager() (defined in InteractionManager)InteractionManager
InteractionManager(const InteractionManager &)=delete (defined in InteractionManager)InteractionManager
operator=(const InteractionManager &)=delete (defined in InteractionManager)InteractionManager
registerListener(std::weak_ptr< InteractionListener > listener) (defined in InteractionManager)InteractionManager
registerTargetingFunc(TargetingFunc func) (defined in InteractionManager)InteractionManager
TargetingStrategy enum name (defined in InteractionManager)InteractionManager
+
+ + + + diff --git a/classInteractionManager.html b/classInteractionManager.html new file mode 100644 index 0000000..04227bc --- /dev/null +++ b/classInteractionManager.html @@ -0,0 +1,170 @@ + + + + + + + + + VEGO-Engine: InteractionManager Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InteractionManager Class Reference
+
+
+ + + + +

+Public Types

enum class  TargetingStrategy : uint8_t { none = 0 +, closest +, manhattenDistance + }
 
+ + + + + + + + + + + +

+Public Member Functions

InteractionManager (const InteractionManager &)=delete
 
+InteractionManageroperator= (const InteractionManager &)=delete
 
+SDL_AppResult handleInteract (SDL_EventType type, SDL_Event *const event)
 
+void registerListener (std::weak_ptr< InteractionListener > listener)
 
+uint8_t registerTargetingFunc (TargetingFunc func)
 
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classManager-members.html b/classManager-members.html index a6c9180..f0b9e2f 100644 --- a/classManager-members.html +++ b/classManager-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - +
@@ -119,24 +119,24 @@ $(function(){initNavTree('classPowerupComponent.html',''); initResizable(true);
-
PowerupComponent Member List
+
PickupComponent Member List
-

This is the complete list of members for PowerupComponent, including all inherited members.

+

This is the complete list of members for PickupComponent, including all inherited members.

- - + + - +
entity (defined in Component)Component
init() (defined in Component)Componentinlinevirtual
PowerupComponent(std::function< void(Entity *)> func) (defined in PowerupComponent)PowerupComponent
update() override (defined in PowerupComponent)PowerupComponentvirtual
PickupComponent(std::function< void(Entity *)> func)PickupComponent
update(uint_fast16_t diffTime) override (defined in PickupComponent)PickupComponentvirtual
~Component()=default (defined in Component)Componentvirtual
~PowerupComponent() (defined in PowerupComponent)PowerupComponentinline
~PickupComponent() (defined in PickupComponent)PickupComponentinline
diff --git a/classPowerupComponent.html b/classPickupComponent.html similarity index 69% rename from classPowerupComponent.html rename to classPickupComponent.html index 2704ed7..5b56002 100644 --- a/classPowerupComponent.html +++ b/classPickupComponent.html @@ -4,9 +4,9 @@ - + - VEGO-Engine: PowerupComponent Class Reference + VEGO-Engine: PickupComponent Class Reference @@ -58,7 +58,7 @@ - +
@@ -121,28 +121,28 @@ $(function(){initNavTree('classPowerupComponent.html',''); initResizable(true);
-
PowerupComponent Class Reference
+List of all members
+
PickupComponent Class Reference
-Inheritance diagram for PowerupComponent:
+Inheritance diagram for PickupComponent:
-
+
[legend]
-Collaboration diagram for PowerupComponent:
+Collaboration diagram for PickupComponent:
-
+
[legend]
- - - - + + + + + @@ -155,9 +155,35 @@ Additional Inherited MembersEntity

Public Member Functions

PowerupComponent (std::function< void(Entity *)> func)
 
void update () override
 
 PickupComponent (std::function< void(Entity *)> func)
 Construct a new Powerup Component object.
 
void update (uint_fast16_t diffTime) override
 
- Public Member Functions inherited from Component
virtual void init ()
entity
 
+

Constructor & Destructor Documentation

+ +

◆ PickupComponent()

+ +
+
+ + + + + + + +
PickupComponent::PickupComponent (std::function< void(Entity *)> func)
+
+ +

Construct a new Powerup Component object.

+
Parameters
+ + +
funcThe function to be called when the powerup is picked up
+
+
+ +
+

Member Function Documentation

- -

◆ update()

+ +

◆ update()

@@ -166,15 +192,15 @@ Additional Inherited Members - + - +
void PowerupComponent::update void PickupComponent::update ()uint_fast16_t diffTime)
-overridevirtual +overridevirtual
@@ -184,16 +210,16 @@ Additional Inherited Members

The documentation for this class was generated from the following files: diff --git a/classPickupComponent.js b/classPickupComponent.js new file mode 100644 index 0000000..17c49f4 --- /dev/null +++ b/classPickupComponent.js @@ -0,0 +1,4 @@ +var classPickupComponent = +[ + [ "PickupComponent", "classPickupComponent.html#a4aa94e90ef16d51dab4486489a9cd3b5", null ] +]; \ No newline at end of file diff --git a/classPickupComponent__coll__graph.map b/classPickupComponent__coll__graph.map new file mode 100644 index 0000000..0097bf5 --- /dev/null +++ b/classPickupComponent__coll__graph.map @@ -0,0 +1,7 @@ + + + + + + + diff --git a/classPickupComponent__coll__graph.md5 b/classPickupComponent__coll__graph.md5 new file mode 100644 index 0000000..a14571a --- /dev/null +++ b/classPickupComponent__coll__graph.md5 @@ -0,0 +1 @@ +2ea44fad598adb9a1ccc15feda045734 \ No newline at end of file diff --git a/classPickupComponent__coll__graph.svg b/classPickupComponent__coll__graph.svg new file mode 100644 index 0000000..2d79a9f --- /dev/null +++ b/classPickupComponent__coll__graph.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + +PickupComponent + + +Node1 + + +PickupComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +Entity + + + + + +Node3->Node2 + + + + + + entity + + + + + + + + diff --git a/classPickupComponent__coll__graph_org.svg b/classPickupComponent__coll__graph_org.svg new file mode 100644 index 0000000..43db8c1 --- /dev/null +++ b/classPickupComponent__coll__graph_org.svg @@ -0,0 +1,58 @@ + + + + + + +PickupComponent + + +Node1 + + +PickupComponent + + + + + +Node2 + + +Component + + + + + +Node2->Node1 + + + + + + + + +Node3 + + +Entity + + + + + +Node3->Node2 + + + + + + entity + + + diff --git a/classPickupComponent__inherit__graph.map b/classPickupComponent__inherit__graph.map new file mode 100644 index 0000000..b5010da --- /dev/null +++ b/classPickupComponent__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/classPickupComponent__inherit__graph.md5 b/classPickupComponent__inherit__graph.md5 new file mode 100644 index 0000000..0b0249f --- /dev/null +++ b/classPickupComponent__inherit__graph.md5 @@ -0,0 +1 @@ +418859f764ea3f19bca85782dc232fae \ No newline at end of file diff --git a/classPowerupComponent__inherit__graph.svg b/classPickupComponent__inherit__graph.svg similarity index 68% rename from classPowerupComponent__inherit__graph.svg rename to classPickupComponent__inherit__graph.svg index a2c75d4..04949bb 100644 --- a/classPowerupComponent__inherit__graph.svg +++ b/classPickupComponent__inherit__graph.svg @@ -3,9 +3,9 @@ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - + + @@ -18,13 +18,13 @@ -PowerupComponent +PickupComponent Node1 - -PowerupComponent + +PickupComponent @@ -32,8 +32,8 @@ Node2 - -Component + +Component @@ -41,8 +41,8 @@ Node2->Node1 - - + + diff --git a/classPowerupComponent__inherit__graph_org.svg b/classPickupComponent__inherit__graph_org.svg similarity index 53% rename from classPowerupComponent__inherit__graph_org.svg rename to classPickupComponent__inherit__graph_org.svg index 6651cd9..335eec3 100644 --- a/classPowerupComponent__inherit__graph_org.svg +++ b/classPickupComponent__inherit__graph_org.svg @@ -3,17 +3,17 @@ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - + + -PowerupComponent +PickupComponent Node1 - -PowerupComponent + +PickupComponent @@ -21,8 +21,8 @@ Node2 - -Component + +Component @@ -30,8 +30,8 @@ Node2->Node1 - - + + diff --git a/classAssetManager-members.html b/classPickupManager-members.html similarity index 59% rename from classAssetManager-members.html rename to classPickupManager-members.html index 0006df2..46a14cd 100644 --- a/classAssetManager-members.html +++ b/classPickupManager-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - +
@@ -119,30 +119,22 @@ $(function(){initNavTree('classAssetManager.html',''); initResizable(true); });
-
AssetManager Member List
+
PickupManager Member List
-

This is the complete list of members for AssetManager, including all inherited members.

+

This is the complete list of members for PickupManager, including all inherited members.

- - - - - - - - - - - - + + + +
addMusic(std::string id, const char *path) (defined in AssetManager)AssetManager
addSoundEffect(std::string id, const char *path) (defined in AssetManager)AssetManager
addTexture(std::string id, const char *path) (defined in AssetManager)AssetManager
AssetManager(Manager *manager) (defined in AssetManager)AssetManager
calculateRandomType(int amount) (defined in AssetManager)AssetManager
calculateSpawnPosition(Vector2D size, Vector2D spawnArea)AssetManager
createPowerup(Vector2D pos, std::function< void(Entity *)> pickupFunc, std::string texturePath) (defined in AssetManager)AssetManager
createProjectile(Vector2D pos, Vector2D velocity, int scale, int range, int speed, const char *texturePath, Entity *owner) (defined in AssetManager)AssetManager
getMusic(std::string id) (defined in AssetManager)AssetManager
getSound(std::string id) (defined in AssetManager)AssetManager
getTexture(std::string id) (defined in AssetManager)AssetManager
~AssetManager() (defined in AssetManager)AssetManager
calculateSpawnPosition() (defined in PickupManager)PickupManager
createPowerup(Vector2D pos, std::function< void(Entity *)> pickupFunc, Textures texture) (defined in PickupManager)PickupManager
PickupManager(Manager *manager) (defined in PickupManager)PickupManager
~PickupManager() (defined in PickupManager)PickupManager
diff --git a/classPickupManager.html b/classPickupManager.html new file mode 100644 index 0000000..ec3e04a --- /dev/null +++ b/classPickupManager.html @@ -0,0 +1,155 @@ + + + + + + + + + VEGO-Engine: PickupManager Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
PickupManager Class Reference
+
+
+ + + + + + + + +

+Public Member Functions

PickupManager (Manager *manager)
 
+void createPowerup (Vector2D pos, std::function< void(Entity *)> pickupFunc, Textures texture)
 
+Vector2D calculateSpawnPosition ()
 
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/classPlayerComponent-members.html b/classPlayerComponent-members.html index ee5981e..5c8f505 100644 --- a/classPlayerComponent-members.html +++ b/classPlayerComponent-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + - diff --git a/classSoundManager__coll__graph_org.svg b/classSoundManager__coll__graph_org.svg deleted file mode 100644 index e71938c..0000000 --- a/classSoundManager__coll__graph_org.svg +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - -SoundManager - - -Node1 - - -SoundManager - - - - - -Node2 - - -std::map< const char - *, Mix_Music * > - - - - - -Node2->Node1 - - - - - - music_cache - - - -Node3 - - -std::map< K, T > - - - - - -Node3->Node2 - - - - - - < const char *, Mix -_Music * > - - - -Node6 - - -std::map< const char - *, Mix_Chunk * > - - - - - -Node3->Node6 - - - - - - < const char *, Mix -_Chunk * > - - - -Node4 - - -K - - - - - -Node4->Node3 - - - - - - keys - - - -Node5 - - -T - - - - - -Node5->Node3 - - - - - - elements - - - -Node6->Node1 - - - - - - sound_cache - - - diff --git a/classSpriteComponent-members.html b/classSpriteComponent-members.html index 550d78d..626f92f 100644 --- a/classSpriteComponent-members.html +++ b/classSpriteComponent-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + - diff --git a/classTextureManager__coll__graph_org.svg b/classTextureManager__coll__graph_org.svg deleted file mode 100644 index 55dbf69..0000000 --- a/classTextureManager__coll__graph_org.svg +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - -TextureManager - - -Node1 - - -TextureManager - - - - - -Node2 - - -std::map< std::string, - SDL_Texture * > - - - - - -Node2->Node1 - - - - - - texture_cache - - - -Node3 - - -std::string - - - - - -Node3->Node2 - - - - - - keys - - - -Node4 - - -std::basic_string< - Char > - - - - - -Node4->Node3 - - - - - - - - -Node5 - - -std::map< K, T > - - - - - -Node5->Node2 - - - - - - < std::string, SDL -_Texture * > - - - -Node6 - - -K - - - - - -Node6->Node5 - - - - - - keys - - - -Node7 - - -T - - - - - -Node7->Node5 - - - - - - elements - - - diff --git a/classTextures.html b/classTextures.html new file mode 100644 index 0000000..0aa703f --- /dev/null +++ b/classTextures.html @@ -0,0 +1,146 @@ + + + + + + + + + VEGO-Engine: Textures Class Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Textures Class Reference
+
+
+ +

Forward declaration of the Textures enum class. + More...

+ +

#include <Textures.h>

+

Detailed Description

+

Forward declaration of the Textures enum class.

+

The Textures enum class is intended to be implemented within the game scope. This allows for customized texture entries to be defined based on the specific needs of the project. The base declaration ensures that the enum class can be referenced and used consistently throughout the engine while leaving the details of the texture identifiers up to the implementation.

See also
TextureManager for how the enum is used.
+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/classTileComponent-members.html b/classTileComponent-members.html index 924de78..bab3ccf 100644 --- a/classTileComponent-members.html +++ b/classTileComponent-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + @@ -59,8 +59,8 @@ var sectionId = 'dynsection-1'; Node1 - -TileComponent + +TileComponent @@ -68,8 +68,8 @@ var sectionId = 'dynsection-1'; Node2 - -Component + +Component @@ -77,8 +77,8 @@ var sectionId = 'dynsection-1'; Node2->Node1 - - + + @@ -86,8 +86,8 @@ var sectionId = 'dynsection-1'; Node4 - -TransformComponent + +TransformComponent @@ -95,8 +95,8 @@ var sectionId = 'dynsection-1'; Node2->Node4 - - + + @@ -104,8 +104,8 @@ var sectionId = 'dynsection-1'; Node6 - -SpriteComponent + +SpriteComponent @@ -113,8 +113,8 @@ var sectionId = 'dynsection-1'; Node2->Node6 - - + + @@ -122,8 +122,8 @@ var sectionId = 'dynsection-1'; Node3 - -Entity + +Entity @@ -131,28 +131,28 @@ var sectionId = 'dynsection-1'; Node3->Node2 - - + + - entity + entity Node4->Node1 - - + + - transform + transform Node5 - -Vector2D + +Vector2D @@ -160,29 +160,29 @@ var sectionId = 'dynsection-1'; Node5->Node4 - - + + - direction -position + direction +position Node6->Node1 - - + + - sprite + sprite Node7 - -RenderObject + +RenderObject @@ -190,8 +190,8 @@ var sectionId = 'dynsection-1'; Node7->Node6 - - + + @@ -199,8 +199,8 @@ var sectionId = 'dynsection-1'; Node8 - -RenderManager + +RenderManager @@ -208,19 +208,19 @@ var sectionId = 'dynsection-1'; Node8->Node7 - - + + - renderManager + renderManager Node9 - -std::map< std::string, - std::unique_ptr< Animation > > + +std::map< std::string, + std::unique_ptr< Animation > > @@ -228,18 +228,18 @@ var sectionId = 'dynsection-1'; Node9->Node6 - - + + - animations + animations Node10 - -std::string + +std::string @@ -247,19 +247,19 @@ var sectionId = 'dynsection-1'; Node10->Node9 - - + + - keys + keys Node11 - -std::basic_string< - Char > + +std::basic_string< + Char > @@ -267,8 +267,8 @@ var sectionId = 'dynsection-1'; Node11->Node10 - - + + @@ -276,8 +276,8 @@ var sectionId = 'dynsection-1'; Node12 - -std::unique_ptr< Animation > + +std::unique_ptr< Animation > @@ -285,18 +285,18 @@ var sectionId = 'dynsection-1'; Node12->Node9 - - + + - elements + elements Node13 - -Animation + +Animation @@ -304,18 +304,18 @@ var sectionId = 'dynsection-1'; Node13->Node12 - - + + - ptr + ptr Node14 - -std::unique_ptr< T > + +std::unique_ptr< T > @@ -323,18 +323,18 @@ var sectionId = 'dynsection-1'; Node14->Node12 - - + + - < Animation > + < Animation > Node15 - -T + +T @@ -342,18 +342,18 @@ var sectionId = 'dynsection-1'; Node15->Node14 - - + + - ptr + ptr Node16 - -std::map< K, T > + +std::map< K, T > @@ -361,29 +361,29 @@ var sectionId = 'dynsection-1'; Node15->Node16 - - + + - elements + elements Node16->Node9 - - + + - < std::string, std -::unique_ptr< Animation > > + < std::string, std +::unique_ptr< Animation > > Node17 - -K + +K @@ -391,11 +391,30 @@ var sectionId = 'dynsection-1'; Node17->Node16 - - + + - keys + keys + + + +Node18 + + +Textures + + + + + +Node18->Node1 + + + + + + texture diff --git a/classTileComponent__coll__graph_org.svg b/classTileComponent__coll__graph_org.svg index 2ce3bdf..6d5f5a2 100644 --- a/classTileComponent__coll__graph_org.svg +++ b/classTileComponent__coll__graph_org.svg @@ -4,16 +4,16 @@ - + TileComponent Node1 - -TileComponent + +TileComponent @@ -21,8 +21,8 @@ Node2 - -Component + +Component @@ -30,8 +30,8 @@ Node2->Node1 - - + + @@ -39,8 +39,8 @@ Node4 - -TransformComponent + +TransformComponent @@ -48,8 +48,8 @@ Node2->Node4 - - + + @@ -57,8 +57,8 @@ Node6 - -SpriteComponent + +SpriteComponent @@ -66,8 +66,8 @@ Node2->Node6 - - + + @@ -75,8 +75,8 @@ Node3 - -Entity + +Entity @@ -84,28 +84,28 @@ Node3->Node2 - - + + - entity + entity Node4->Node1 - - + + - transform + transform Node5 - -Vector2D + +Vector2D @@ -113,29 +113,29 @@ Node5->Node4 - - + + - direction -position + direction +position Node6->Node1 - - + + - sprite + sprite Node7 - -RenderObject + +RenderObject @@ -143,8 +143,8 @@ Node7->Node6 - - + + @@ -152,8 +152,8 @@ Node8 - -RenderManager + +RenderManager @@ -161,19 +161,19 @@ Node8->Node7 - - + + - renderManager + renderManager Node9 - -std::map< std::string, - std::unique_ptr< Animation > > + +std::map< std::string, + std::unique_ptr< Animation > > @@ -181,18 +181,18 @@ Node9->Node6 - - + + - animations + animations Node10 - -std::string + +std::string @@ -200,19 +200,19 @@ Node10->Node9 - - + + - keys + keys Node11 - -std::basic_string< - Char > + +std::basic_string< + Char > @@ -220,8 +220,8 @@ Node11->Node10 - - + + @@ -229,8 +229,8 @@ Node12 - -std::unique_ptr< Animation > + +std::unique_ptr< Animation > @@ -238,18 +238,18 @@ Node12->Node9 - - + + - elements + elements Node13 - -Animation + +Animation @@ -257,18 +257,18 @@ Node13->Node12 - - + + - ptr + ptr Node14 - -std::unique_ptr< T > + +std::unique_ptr< T > @@ -276,18 +276,18 @@ Node14->Node12 - - + + - < Animation > + < Animation > Node15 - -T + +T @@ -295,18 +295,18 @@ Node15->Node14 - - + + - ptr + ptr Node16 - -std::map< K, T > + +std::map< K, T > @@ -314,29 +314,29 @@ Node15->Node16 - - + + - elements + elements Node16->Node9 - - + + - < std::string, std -::unique_ptr< Animation > > + < std::string, std +::unique_ptr< Animation > > Node17 - -K + +K @@ -344,11 +344,30 @@ Node17->Node16 - - + + - keys + keys + + + +Node18 + + +Textures + + + + + +Node18->Node1 + + + + + + texture diff --git a/classTransformComponent-members.html b/classTransformComponent-members.html index 0af955e..dda3570 100644 --- a/classTransformComponent-members.html +++ b/classTransformComponent-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InputManager::InputAction Member List
+
+
+ +

This is the complete list of members for InputManager::InputAction, including all inherited members.

+ + + + +
bindings (defined in InputManager::InputAction)InputManager::InputAction
callback (defined in InputManager::InputAction)InputManager::InputAction
name (defined in InputManager::InputAction)InputManager::InputAction
+
+ + + + diff --git a/structInputManager_1_1InputAction.html b/structInputManager_1_1InputAction.html new file mode 100644 index 0000000..8b4ead6 --- /dev/null +++ b/structInputManager_1_1InputAction.html @@ -0,0 +1,159 @@ + + + + + + + + + VEGO-Engine: InputManager::InputAction Struct Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InputManager::InputAction Struct Reference
+
+
+
+Collaboration diagram for InputManager::InputAction:
+
+
+
[legend]
+ + + + + + + + +

+Public Attributes

+std::string name
 
+std::vector< Key > bindings
 
+std::function< void(bool)> callback
 
+
The documentation for this struct was generated from the following file: +
+
+ + + + diff --git a/structInputManager_1_1InputAction__coll__graph.map b/structInputManager_1_1InputAction__coll__graph.map new file mode 100644 index 0000000..bc60243 --- /dev/null +++ b/structInputManager_1_1InputAction__coll__graph.map @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/structInputManager_1_1InputAction__coll__graph.md5 b/structInputManager_1_1InputAction__coll__graph.md5 new file mode 100644 index 0000000..ce04f1a --- /dev/null +++ b/structInputManager_1_1InputAction__coll__graph.md5 @@ -0,0 +1 @@ +8b787387854f9e75bd6256b79ab84fdd \ No newline at end of file diff --git a/structInputManager_1_1InputAction__coll__graph.svg b/structInputManager_1_1InputAction__coll__graph.svg new file mode 100644 index 0000000..ee9031d --- /dev/null +++ b/structInputManager_1_1InputAction__coll__graph.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + +InputManager::InputAction + + +Node1 + + +InputManager::InputAction + + + + + +Node2 + + +std::string + + + + + +Node2->Node1 + + + + + + name + + + +Node3 + + +std::basic_string< + Char > + + + + + +Node3->Node2 + + + + + + + + +Node4 + + +std::vector< Key > + + + + + +Node4->Node1 + + + + + + bindings + + + +Node5 + + +std::vector< T > + + + + + +Node5->Node4 + + + + + + < Key > + + + +Node6 + + +T + + + + + +Node6->Node5 + + + + + + elements + + + + + + + + diff --git a/structInputManager_1_1InputAction__coll__graph_org.svg b/structInputManager_1_1InputAction__coll__graph_org.svg new file mode 100644 index 0000000..10fbd2d --- /dev/null +++ b/structInputManager_1_1InputAction__coll__graph_org.svg @@ -0,0 +1,116 @@ + + + + + + +InputManager::InputAction + + +Node1 + + +InputManager::InputAction + + + + + +Node2 + + +std::string + + + + + +Node2->Node1 + + + + + + name + + + +Node3 + + +std::basic_string< + Char > + + + + + +Node3->Node2 + + + + + + + + +Node4 + + +std::vector< Key > + + + + + +Node4->Node1 + + + + + + bindings + + + +Node5 + + +std::vector< T > + + + + + +Node5->Node4 + + + + + + < Key > + + + +Node6 + + +T + + + + + +Node6->Node5 + + + + + + elements + + + diff --git a/structInteractionEventdataStruct-members.html b/structInteractionEventdataStruct-members.html new file mode 100644 index 0000000..76d74ee --- /dev/null +++ b/structInteractionEventdataStruct-members.html @@ -0,0 +1,143 @@ + + + + + + + + + VEGO-Engine: Member List + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
InteractionEventdataStruct Member List
+
+ +
+ + + + diff --git a/structInteractionEventdataStruct.html b/structInteractionEventdataStruct.html new file mode 100644 index 0000000..a3dbab2 --- /dev/null +++ b/structInteractionEventdataStruct.html @@ -0,0 +1,199 @@ + + + + + + + + + VEGO-Engine: InteractionEventdataStruct Struct Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
InteractionEventdataStruct Struct Reference
+
+
+ +

Struct to hold data for interaction events. This struct is used to pass data to the interaction manager when an interaction event is triggered. + More...

+ +

#include <InteractionEventdataStruct.h>

+
+Collaboration diagram for InteractionEventdataStruct:
+
+
+
[legend]
+ + + + +

+Public Member Functions

+void triggerEvent ()
 
+ + + + + + + + + + + + + + + +

+Public Attributes

+void * actor
 Arbitray data to pass to the interaction listener. Can for example be an Entity ptr to represent the actor.
 
+void * data
 The data to pass to the interaction listener. Can be any type of pointer.
 
+std::weak_ptr< InteractionListenertarget = std::weak_ptr<InteractionListener>()
 The target of the interaction, e.g. InteractionComponent of an Entity. Is required if strategy is set to 0 (none)
 
+std::shared_ptr< Vector2DtargetingReference = nullptr
 Coordinates from which to base targeting on. Is required if strategy is not set to 0 (none)
 
uint8_t strategy = 0
 
+

Detailed Description

+

Struct to hold data for interaction events. This struct is used to pass data to the interaction manager when an interaction event is triggered.

+

Member Data Documentation

+ +

◆ strategy

+ +
+
+ + + + +
uint8_t InteractionEventdataStruct::strategy = 0
+
+

required without explicit target, defaults to none

See also
InteractionManager::TargetingStrategy
+ +
+
+
The documentation for this struct was generated from the following files: +
+
+ + + + diff --git a/structInteractionEventdataStruct.js b/structInteractionEventdataStruct.js new file mode 100644 index 0000000..d4e07c6 --- /dev/null +++ b/structInteractionEventdataStruct.js @@ -0,0 +1,8 @@ +var structInteractionEventdataStruct = +[ + [ "actor", "structInteractionEventdataStruct.html#a37aa07113eed65f8f5c19634092f1810", null ], + [ "data", "structInteractionEventdataStruct.html#a82dc8bba3309e5aca77629c8fd192fbc", null ], + [ "strategy", "structInteractionEventdataStruct.html#aad4922791175a51c55987ecedba335c4", null ], + [ "target", "structInteractionEventdataStruct.html#a2244f55fa7cff63d586d46d28d8a6ef3", null ], + [ "targetingReference", "structInteractionEventdataStruct.html#a49f1d3c0d48b7b26af7fba98ec53b402", null ] +]; \ No newline at end of file diff --git a/structInteractionEventdataStruct__coll__graph.map b/structInteractionEventdataStruct__coll__graph.map new file mode 100644 index 0000000..5add4d8 --- /dev/null +++ b/structInteractionEventdataStruct__coll__graph.map @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/structInteractionEventdataStruct__coll__graph.md5 b/structInteractionEventdataStruct__coll__graph.md5 new file mode 100644 index 0000000..80de95f --- /dev/null +++ b/structInteractionEventdataStruct__coll__graph.md5 @@ -0,0 +1 @@ +a87c5619b7b71931f4718c16530d6a50 \ No newline at end of file diff --git a/structInteractionEventdataStruct__coll__graph.svg b/structInteractionEventdataStruct__coll__graph.svg new file mode 100644 index 0000000..d012484 --- /dev/null +++ b/structInteractionEventdataStruct__coll__graph.svg @@ -0,0 +1,191 @@ + + + + + + + + + + + + +InteractionEventdataStruct + + +Node1 + + +InteractionEventdataStruct + + + + + +Node2 + + +std::weak_ptr< Interaction +Listener > + + + + + +Node2->Node1 + + + + + + target + + + +Node3 + + +InteractionListener + + + + + +Node3->Node2 + + + + + + ptr + + + +Node4 + + +std::weak_ptr< T > + + + + + +Node4->Node2 + + + + + + < InteractionListener > + + + +Node5 + + +T + + + + + +Node5->Node4 + + + + + + ptr + + + +Node8 + + +std::shared_ptr< T > + + + + + +Node5->Node8 + + + + + + ptr + + + +Node6 + + +std::shared_ptr< Vector2D > + + + + + +Node6->Node1 + + + + + + targetingReference + + + +Node7 + + +Vector2D + + + + + +Node7->Node6 + + + + + + ptr + + + +Node8->Node6 + + + + + + < Vector2D > + + + + + + + + diff --git a/structInteractionEventdataStruct__coll__graph_org.svg b/structInteractionEventdataStruct__coll__graph_org.svg new file mode 100644 index 0000000..f3f28c9 --- /dev/null +++ b/structInteractionEventdataStruct__coll__graph_org.svg @@ -0,0 +1,165 @@ + + + + + + +InteractionEventdataStruct + + +Node1 + + +InteractionEventdataStruct + + + + + +Node2 + + +std::weak_ptr< Interaction +Listener > + + + + + +Node2->Node1 + + + + + + target + + + +Node3 + + +InteractionListener + + + + + +Node3->Node2 + + + + + + ptr + + + +Node4 + + +std::weak_ptr< T > + + + + + +Node4->Node2 + + + + + + < InteractionListener > + + + +Node5 + + +T + + + + + +Node5->Node4 + + + + + + ptr + + + +Node8 + + +std::shared_ptr< T > + + + + + +Node5->Node8 + + + + + + ptr + + + +Node6 + + +std::shared_ptr< Vector2D > + + + + + +Node6->Node1 + + + + + + targetingReference + + + +Node7 + + +Vector2D + + + + + +Node7->Node6 + + + + + + ptr + + + +Node8->Node6 + + + + + + < Vector2D > + + + diff --git a/structRenderObject_1_1ZIndexComparator-members.html b/structRenderObject_1_1ZIndexComparator-members.html index 7377068..cc0a55a 100644 --- a/structRenderObject_1_1ZIndexComparator-members.html +++ b/structRenderObject_1_1ZIndexComparator-members.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Member List @@ -58,7 +58,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StatEffect Member List
+
+
+ +

This is the complete list of members for StatEffect, including all inherited members.

+ + + + +
durationStatEffect
resetFunctionStatEffect
startTime (defined in StatEffect)StatEffect
+
+ + + + diff --git a/structStatEffect.html b/structStatEffect.html new file mode 100644 index 0000000..abc050d --- /dev/null +++ b/structStatEffect.html @@ -0,0 +1,163 @@ + + + + + + + + + VEGO-Engine: StatEffect Struct Reference + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+
VEGO-Engine +  0.1 +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
StatEffect Struct Reference
+
+
+ +

Struct to hold the duration, reset function and start time of a stat effect. + More...

+ +

#include <StatEffectsComponent.h>

+ + + + + + + + + + +

+Public Attributes

+uint32_t duration
 Duration of the effect in milliseconds.
 
+std::function< void()> resetFunction
 Function to reset the effect, will be called on expiry of duration.
 
+uint32_t startTime
 
+

Detailed Description

+

Struct to hold the duration, reset function and start time of a stat effect.

+

The documentation for this struct was generated from the following file: +
+
+ + + + diff --git a/structStatEffect.js b/structStatEffect.js new file mode 100644 index 0000000..2d4288e --- /dev/null +++ b/structStatEffect.js @@ -0,0 +1,5 @@ +var structStatEffect = +[ + [ "duration", "structStatEffect.html#af1f5099f0680329ff9ce3a9362391196", null ], + [ "resetFunction", "structStatEffect.html#aca6d477c75029a2575d2e0a4f5794a43", null ] +]; \ No newline at end of file diff --git a/todo.html b/todo.html index 716b48b..726cd53 100644 --- a/todo.html +++ b/todo.html @@ -4,7 +4,7 @@ - + VEGO-Engine: Todo List @@ -58,7 +58,7 @@ - +