Kale
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Kale::Collidable Class Reference

#include <Collidable.hpp>

+ Inheritance diagram for Kale::Collidable:

Public Member Functions

Rect getBoundingBox () const
 

Protected Attributes

Rect boundingBox
 

Detailed Description

All nodes capable of collision must inherit from this class

Definition at line 28 of file Collidable.hpp.

Member Function Documentation

◆ getBoundingBox()

Rect Collidable::getBoundingBox ( ) const

Thread safe method to get the bounding box

Returns
The bounding box of this node

Definition at line 25 of file Collidable.cpp.

Member Data Documentation

◆ boundingBox

Rect Kale::Collidable::boundingBox
protected

The bounding box of the node, bounding box should be updated in preUpdate where possible allowing other nodes to use it during update. Thread syncrhonization to bounding box updating is expected by the inheriting node.

Definition at line 35 of file Collidable.hpp.


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