|
| CollisionData ()=delete |
|
| CollisionData (const unsigned int map_width, const unsigned int map_height) |
|
void | setIndexCollidable (const unsigned int x, const unsigned int y, const unsigned int collide_level) |
|
int | getCollideLevel (const int x, const int y) |
|
unsigned int | getWidth () const noexcept |
|
unsigned int | getHeight () const noexcept |
|
virtual void | onStart () override |
| Called when the engine starts and when a new scene is loaded. More...
|
|
virtual bool | onUpdate (const double delta) override |
| Called every engine loop. More...
|
|
virtual void | onDestroy () override |
| Called when the engine is shutting down. More...
|
|
virtual unsigned long long | getValueForSorting () const override |
| Gets the value for sorting. More...
|
|
virtual std::string | to_string () const noexceptoverride |
| Returns a string representation of the object. More...
|
|
virtual void | log (el::base::type::ostream_t &os) const override |
|
| Component () |
| Component constructor. More...
|
|
void | setTransform (std::shared_ptr< Transform > transform) |
| Sets the transform. More...
|
|
std::shared_ptr< Transform > | getTransform () const noexcept |
| Gets the transform. More...
|
|
void | setActive (const bool active) noexcept |
| Sets the component active or inactive. More...
|
|
bool | isActive () const noexcept |
| Determines if active. More...
|
|
unsigned int | getId () const noexcept |
| Gets the identifier. More...
|
|
virtual std::string | className () const noexcept |
| Returns a string representing the class name. More...
|
|
bool | operator< (Component &other) noexcept |
| Operator < using getValueForSorting. More...
|
|
virtual void | onNotifyNow (std::shared_ptr< Events::Event > event) override |
| When receiving an event that is immediate, onNotifyNow is used. It acts as an interrupt to make sure the object is notified before another engine loop. This is pure virtual and is implemented on a case by case basis in derived classes. More...
|
|
virtual void | handleQueuedEvent (std::shared_ptr< Events::Event > event) override |
| HandleQueuedEvent allows derived classes to define behaviour for when queuedEvents are received. More...
|
|
virtual | ~Component () |
| Destroys the object. More...
|
|
virtual | ~Subject ()=default |
|
virtual void | notify (std::shared_ptr< Event > event) |
| notify is used to tell observers of an event. More...
|
|
virtual void | notifyNow (std::shared_ptr< Event > event) |
| notifyNow is used to tell observers of an event as an interrupt. More...
|
|
virtual void | addObserver (std::shared_ptr< Observer > observer) |
| Adds an observer. More...
|
|
virtual void | removeObserver (std::shared_ptr< Observer > observer) |
| Removes an observer. More...
|
|
virtual | ~Observer () |
|
void | onNotify (std::shared_ptr< Event > event) |
| When receiving an event that is non-immediate, onNotify is used. The event is added to the event queue that is processed when processEventQueue is called. More...
|
|
void | processEventQueue () |
| This should be called once ever loop for every Observer to properly use queued events. More...
|
|