Class that describes a change in the visibile entity. More...
#include <Map.h>
Public Member Functions | |
Change (Vector3 op, Vector3 d, int oh, int nh, int t, shared_ptr< VisibleEntity > e) | |
Constructor. More... | |
Public Attributes | |
Vector3 | displacement |
Displacement vector, reflects the change every frame. More... | |
int | newHP |
New HP at this frame. More... | |
int | oldHP |
Old HP before this frame. More... | |
Vector3 | oldPos |
Old Position at the start of the move, does not reflect interpolation. More... | |
int | type |
Type of the MapElement. More... | |
shared_ptr< VisibleEntity > | ve |
The VisibleEntity to be changed. More... | |
Class that describes a change in the visibile entity.
Sent from Map to VisualControl.
Contains information about the change to an visible entity in the past frame
VisualControl is responsible for decoding the information
Change::Change | ( | Vector3 | op, |
Vector3 | d, | ||
int | oh, | ||
int | nh, | ||
int | t, | ||
shared_ptr< VisibleEntity > | e | ||
) |
Constructor.
op | oldPos |
d | displacement |
oh | oldHP |
nh | newHP |
t | type |
e | ve |
Vector3 Change::displacement |
Displacement vector, reflects the change every frame.
int Change::newHP |
New HP at this frame.
int Change::oldHP |
Old HP before this frame.
Vector3 Change::oldPos |
Old Position at the start of the move, does not reflect interpolation.
int Change::type |
Type of the MapElement.
shared_ptr<VisibleEntity> Change::ve |
The VisibleEntity to be changed.