![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <ECS_Systems.h>
Inheritance diagram for GridSystem:
Collaboration diagram for GridSystem:Additional Inherited Members | |
Public Attributes inherited from ECS_System | |
| ComponentSignature | requiredSignature |
| std::set< EntityID > | m_entities |
Definition at line 177 of file ECS_Systems.h.
| GridSystem::GridSystem | ( | ) |
Definition at line 1678 of file ECS_Systems.cpp.
| void GridSystem::DrawFilledRectWorld | ( | const CameraTransform & | cam, |
| const Vector & | worldPos, | ||
| float | width, | ||
| float | height, | ||
| const SDL_Color & | c | ||
| ) |
Definition at line 2012 of file ECS_Systems.cpp.
References GetComponentTypeID_Static(), GameEngine::renderer, renderer, Vector::x, and Vector::y.
Here is the call graph for this function:| void GridSystem::DrawHexagonOverlay | ( | float | centerX, |
| float | centerY, | ||
| float | radius, | ||
| const SDL_Color & | color | ||
| ) |
Definition at line 2081 of file ECS_Systems.cpp.
References GetComponentTypeID_Static(), k_PI, GameEngine::renderer, and renderer.
Referenced by RenderCollisionOverlay(), and RenderNavigationOverlay().
Here is the call graph for this function:
Here is the caller graph for this function:| void GridSystem::DrawIsometricTileOverlay | ( | float | centerX, |
| float | centerY, | ||
| float | width, | ||
| float | height, | ||
| const SDL_Color & | color | ||
| ) |
Definition at line 2033 of file ECS_Systems.cpp.
References GetComponentTypeID_Static(), GameEngine::renderer, and renderer.
Referenced by RenderCollisionOverlay(), and RenderNavigationOverlay().
Here is the call graph for this function:
Here is the caller graph for this function:| void GridSystem::DrawLineWorld | ( | const CameraTransform & | cam, |
| const Vector & | aWorld, | ||
| const Vector & | bWorld, | ||
| const SDL_Color & | c | ||
| ) |
Definition at line 1692 of file ECS_Systems.cpp.
References GetComponentTypeID_Static(), GameEngine::renderer, renderer, Vector::x, and Vector::y.
Referenced by RenderHex(), RenderIso(), and RenderOrtho().
Here is the call graph for this function:
Here is the caller graph for this function:| const GridSettings_data * GridSystem::FindSettings | ( | ) | const |
Definition at line 1680 of file ECS_Systems.cpp.
References World::Get(), World::GetComponent(), GetComponentTypeID_Static(), World::HasComponent(), and World::m_entitySignatures.
Referenced by Render(), and RenderForCamera().
Here is the call graph for this function:
Here is the caller graph for this function:| SDL_FRect GridSystem::GetWorldVisibleBounds | ( | const CameraTransform & | cam | ) |
Definition at line 1705 of file ECS_Systems.cpp.
References GetComponentTypeID_Static().
Referenced by RenderCollisionOverlay(), RenderHex(), RenderIso(), RenderNavigationOverlay(), and RenderOrtho().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from ECS_System.
Definition at line 1722 of file ECS_Systems.cpp.
References FindSettings(), ViewportManager::Get(), GetActiveCameraTransform(), GetComponentTypeID_Static(), ViewportManager::GetPlayers(), HexAxial, Iso, Ortho, GameEngine::renderer, renderer, RenderHex(), RenderIso(), and RenderOrtho().
Here is the call graph for this function:| void GridSystem::RenderCollisionOverlay | ( | const CameraTransform & | cam, |
| const GridSettings_data & | s | ||
| ) |
Definition at line 2121 of file ECS_Systems.cpp.
References DrawHexagonOverlay(), DrawIsometricTileOverlay(), CollisionMap::Get(), GetComponentTypeID_Static(), GetWorldVisibleBounds(), HexAxial, Iso, GameEngine::renderer, renderer, SYSTEM_LOG, and TileProperties::worldX.
Here is the call graph for this function:| void GridSystem::RenderForCamera | ( | const CameraTransform & | cam | ) |
Definition at line 1797 of file ECS_Systems.cpp.
References FindSettings(), GetComponentTypeID_Static(), HexAxial, Iso, Ortho, GameEngine::renderer, renderer, RenderHex(), RenderIso(), and RenderOrtho().
Referenced by RenderingSystem::Render().
Here is the call graph for this function:
Here is the caller graph for this function:| void GridSystem::RenderHex | ( | const CameraTransform & | cam, |
| const GridSettings_data & | s | ||
| ) |
Definition at line 1948 of file ECS_Systems.cpp.
References DrawLineWorld(), GetComponentTypeID_Static(), GetWorldVisibleBounds(), and k_PI.
Referenced by Render(), and RenderForCamera().
Here is the call graph for this function:
Here is the caller graph for this function:| void GridSystem::RenderIso | ( | const CameraTransform & | cam, |
| const GridSettings_data & | s | ||
| ) |
Definition at line 1861 of file ECS_Systems.cpp.
References DrawLineWorld(), GetComponentTypeID_Static(), and GetWorldVisibleBounds().
Referenced by Render(), and RenderForCamera().
Here is the call graph for this function:
Here is the caller graph for this function:| void GridSystem::RenderNavigationOverlay | ( | const CameraTransform & | cam, |
| const GridSettings_data & | s | ||
| ) |
Definition at line 2283 of file ECS_Systems.cpp.
References DrawHexagonOverlay(), DrawIsometricTileOverlay(), CollisionMap::Get(), GetComponentTypeID_Static(), GetWorldVisibleBounds(), HexAxial, Iso, GameEngine::renderer, renderer, SYSTEM_LOG, TileProperties::worldX, and Vector::x.
Here is the call graph for this function:| void GridSystem::RenderOrtho | ( | const CameraTransform & | cam, |
| const GridSettings_data & | s | ||
| ) |
Definition at line 1818 of file ECS_Systems.cpp.
References DrawLineWorld(), GetComponentTypeID_Static(), and GetWorldVisibleBounds().
Referenced by Render(), and RenderForCamera().
Here is the call graph for this function:
Here is the caller graph for this function: