Rasterization-DiscoBall
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Change Class Reference

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...
 

Detailed Description

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

Constructor & Destructor Documentation

Change::Change ( Vector3  op,
Vector3  d,
int  oh,
int  nh,
int  t,
shared_ptr< VisibleEntity >  e 
)

Constructor.

Parameters
opoldPos
ddisplacement
oholdHP
nhnewHP
ttype
eve

Member Data Documentation

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.


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