Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
Olympe::Blueprint Namespace Reference

Classes

struct  ComponentData
 
struct  EntityBlueprint
 

Typedefs

using json = nlohmann::json
 

Functions

ComponentData CreatePositionComponent (float x, float y)
 
ComponentData CreateBoundingBoxComponent (float x, float y, float width, float height)
 
ComponentData CreateVisualSpriteComponent (const std::string &spritePath, float srcX, float srcY, float srcWidth, float srcHeight, float hotSpotX, float hotSpotY)
 
ComponentData CreateMovementComponent (float dirX, float dirY, float velX, float velY)
 
ComponentData CreatePhysicsBodyComponent (float mass, float speed)
 
ComponentData CreateHealthComponent (int current, int max)
 
ComponentData CreateAIBehaviorComponent (const std::string &behaviorType)
 

Typedef Documentation

◆ json

Definition at line 17 of file EntityBlueprint.h.

Function Documentation

◆ CreateAIBehaviorComponent()

ComponentData Olympe::Blueprint::CreateAIBehaviorComponent ( const std::string &  behaviorType)

Definition at line 209 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateBoundingBoxComponent()

ComponentData Olympe::Blueprint::CreateBoundingBoxComponent ( float  x,
float  y,
float  width,
float  height 
)

Definition at line 141 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestCreateAndSaveBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateHealthComponent()

ComponentData Olympe::Blueprint::CreateHealthComponent ( int  current,
int  max 
)

Definition at line 201 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestCreateAndSaveBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateMovementComponent()

ComponentData Olympe::Blueprint::CreateMovementComponent ( float  dirX,
float  dirY,
float  velX,
float  velY 
)

Definition at line 176 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestLoadAndModifyBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreatePhysicsBodyComponent()

ComponentData Olympe::Blueprint::CreatePhysicsBodyComponent ( float  mass,
float  speed 
)

Definition at line 193 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestCreateAndSaveBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreatePositionComponent()

ComponentData Olympe::Blueprint::CreatePositionComponent ( float  x,
float  y 
)

Definition at line 130 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestCreateAndSaveBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateVisualSpriteComponent()

ComponentData Olympe::Blueprint::CreateVisualSpriteComponent ( const std::string &  spritePath,
float  srcX,
float  srcY,
float  srcWidth,
float  srcHeight,
float  hotSpotX,
float  hotSpotY 
)

Definition at line 153 of file EntityBlueprint.cpp.

References GetComponentTypeID_Static().

Referenced by Olympe::BlueprintEditorGUI::AddComponent(), and TestCreateAndSaveBlueprint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: