TORCS
1.3.9
The Open Racing Car Simulator
Response.h
Go to the documentation of this file.
1
/*
2
SOLID - Software Library for Interference Detection
3
Copyright (C) 1997-1998 Gino van den Bergen
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19
Please send remarks, questions and bug reports to gino@win.tue.nl,
20
or write to:
21
Gino van den Bergen
22
Department of Mathematics and Computing Science
23
Eindhoven University of Technology
24
P.O. Box 513, 5600 MB Eindhoven, The Netherlands
25
*/
26
27
#ifndef _RESPONSE_H_
28
#define _RESPONSE_H_
29
30
#ifdef _MSC_VER
31
#pragma warning(disable:4786) // identifier was truncated to '255'
32
#endif // _MSC_VER
33
34
#include <
SOLID/solid.h
>
35
36
#include <
3D/Point.h
>
37
38
class
Response
{
39
public
:
40
static
DtCollData
coll_data
;
41
42
DtResponse
response
;
43
DtResponseType
type
;
44
void
*
client_data
;
45
46
Response
(
DtResponse
r = 0,
47
DtResponseType
t =
DT_NO_RESPONSE
,
48
void
*
p
= 0) :
49
response
(r),
type
(t),
client_data
(
p
) {}
50
51
void
operator()
(
DtObjectRef
a,
DtObjectRef
b,
52
const
Point
& pa,
const
Point
& pb,
const
Vector
& v)
const
;
53
void
operator()
(
DtObjectRef
a,
DtObjectRef
b)
const
;
54
};
55
56
#endif
Response::client_data
void * client_data
Definition:
Response.h:44
Point.h
Response::Response
Response(DtResponse r=0, DtResponseType t=DT_NO_RESPONSE, void *p=0)
Definition:
Response.h:46
DtCollData
Definition:
solid.h:55
Response::coll_data
static DtCollData coll_data
Definition:
Response.h:40
solid.h
DtResponse
void(* DtResponse)(void *client_data, DtObjectRef object1, DtObjectRef object2, const DtCollData *coll_data)
Definition:
solid.h:61
p
static Point p[4]
Definition:
Convex.cpp:54
Response::type
DtResponseType type
Definition:
Response.h:43
DT_NO_RESPONSE
Definition:
solid.h:49
Response::operator()
void operator()(DtObjectRef a, DtObjectRef b, const Point &pa, const Point &pb, const Vector &v) const
Definition:
Response.cpp:35
Response
Definition:
Response.h:38
Vector
Definition:
Vector.h:32
DtObjectRef
void * DtObjectRef
Definition:
solid.h:39
Response::response
DtResponse response
Definition:
Response.h:42
Point
Definition:
Point.h:34
DtResponseType
DtResponseType
Definition:
solid.h:48
src
modules
simu
simuv2
SOLID-2.0
src
Response.h
Generated by
1.8.14