1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/***************************************************************************
ColorBehavior.h - description
-------------------
begin : Tue Feb 15 2000
copyright : (C) 2000 by Henrik Enqvist
email : henqvist@excite.com
***************************************************************************/
#ifndef COLORBEHAVIOR_H
#define COLORBEHAVIOR_H
#include "Behavior.h"
#include "EMath.h"
#include "StateMachine.h"
/** A simple behavior that changes the color of all polygons in the Shape3D
* to blue and then when collision occurs all polygons are changed to red.
* The collision example uses this to demonstrate when collision is
* detected between two Shape3Ds. */
class ColorBehavior : public Behavior {
public:
ColorBehavior();
~ColorBehavior();
void onCollision(const Vertex3D & vtxWall, const Vertex3D & vtxOwn, Group * g);
void onTick();
void StdOnSignal();
};
#endif // COLORBEHAVIOR_H
|