cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
engine.hpp File Reference

C++ Extensions for the CmdFX Physics Engine. More...

Go to the source code of this file.

Namespaces

namespace  CmdFX
 Primary namespace for CmdFX.
 
namespace  CmdFX::Engine
 A C++ wrapper around the CmdFX Physics Engine.
 

Functions

int CmdFX::Engine::start ()
 
std::vector< std::unique_ptr< Sprite > > CmdFX::Engine::tick ()
 Ticks the physics engine and returns modified sprites.
 
void CmdFX::Engine::cleanup ()
 
bool CmdFX::Engine::isMotionDebugEnabled ()
 Checks if motion debugging is enabled.
 
bool CmdFX::Engine::isSpriteStatic (Sprite &sprite)
 
void CmdFX::Engine::setSpriteStatic (Sprite &sprite, bool isStatic)
 
double CmdFX::Engine::getForceOfGravity ()
 
void CmdFX::Engine::setForceOfGravity (double force)
 
double CmdFX::Engine::getTerminalVelocity ()
 
void CmdFX::Engine::setTerminalVelocity (double velocity)
 
int CmdFX::Engine::getGroundY ()
 
void CmdFX::Engine::setGroundY (int y)
 
double CmdFX::Engine::getDefaultFrictionCoefficient ()
 
void CmdFX::Engine::setDefaultFrictionCoefficient (double coefficient)
 
double CmdFX::Engine::getCharacterMass (char c)
 
void CmdFX::Engine::setCharacterMass (char c, double mass)
 

Detailed Description

C++ Extensions for the CmdFX Physics Engine.

Author
Gregory Mitchell (me@gm.nosp@m.itch.nosp@m.215.x.nosp@m.yz)
Version
0.2.1
Date
2025-05-27