Phyzix
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
DynamicObject Class Reference
Inheritance diagram for DynamicObject:
Drawable RuntimeBaseTypeIdentifiable Sprite

Public Member Functions

RuntimeBaseType getBaseType () const override
 
 DynamicObject (void(*drawFunction)(float, float), void(*blackOutFunction)(float, float), void(*boundaryUpdateFunction)(Boundaries &, Vector &), float x, float y)
 
void draw () const override
 
void blackOut () const
 

Public Attributes

float prev_x = 0
 
float prev_y = 0
 
Vector s
 
Vector v = Vector(0, 0)
 
Vector a = Vector(0, 0)
 
float m = 1
 
Vector(* forceFunction )(float, float, float, float, float)
 
float zIndex = 0
 
void(* drawFunction )(float, float)
 
void(* blackOutFunction )(float, float)
 
void(* updateBoundaryFunction )(Boundaries &, Vector &)
 
Boundaries boundaries
 

Member Function Documentation

◆ draw()

void DynamicObject::draw ( ) const
inlineoverridevirtual

Implements Drawable.

◆ getBaseType()

RuntimeBaseType DynamicObject::getBaseType ( ) const
inlineoverridevirtual

Reimplemented from Drawable.


The documentation for this class was generated from the following file: