mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-11 09:53:47 +01:00
19 lines
535 B
C++
19 lines
535 B
C++
#ifndef __CONTROLLER_BASE_H__
|
|
#define __CONTROLLER_BASE_H__
|
|
|
|
#include "sim_local.h"
|
|
|
|
class CControllerBase {
|
|
|
|
public:
|
|
virtual void onDrawn() { }
|
|
virtual void sendEvent(int code, const class Coord &mouseOfs) { }
|
|
virtual void rotateDegreesAround(float f, const class Coord &p) { }
|
|
// for buttons
|
|
virtual class CJunction *findOtherJunctionIfPassable(class CJunction *ju) { return 0; }
|
|
virtual class CControllerBase *cloneController(class CShape *origOwner, class CShape *newOwner) { return 0; }
|
|
};
|
|
|
|
|
|
#endif // __CONTROLLER_BASE_H__
|