File: moduletest.cpp

package info (click to toggle)
pinball 0.3.20201218-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,452 kB
  • sloc: cpp: 15,230; makefile: 840; sh: 381; xml: 24
file content (25 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (2)
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
/***************************************************************************
                          module.cpp  -  description
                             -------------------
    begin                : Sun Sep 22 2002
    copyright            : (C) 2002 by Henrik Enqvist
    email                : henqvist@excite.com
 ***************************************************************************/

#include <stdlib.h>
#include "Private.h"
#include "Behavior.h"


class MyBehavior : public Behavior {
 public:
	MyBehavior() : Behavior() {};
	~MyBehavior() {};
	void onTick() {};
	void onCollision(const Vertex3D & vtxWall, const Vertex3D & vtxOwn, Group * g) {};
	void onSignal(int signal, Group * sender) {};
};

extern "C"  void * new_object_fct(void) {
	return new MyBehavior();
}