]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/endpoint.h
Add Id tags and copyright notices to files
[r2c2.git] / source / libmarklin / endpoint.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN_ENDPOINT_H_
9 #define MARKLIN_ENDPOINT_H_
10
11 namespace Marklin {
12
13 struct Endpoint
14 {
15         float  x, y;
16         float  dir;  // Direction outwards from the endpoint
17         unsigned routes;
18
19         Endpoint(): x(0), y(0), dir(0), routes(0) { }
20         Endpoint(float x_, float y_, float d, unsigned r): x(x_), y(y_), dir(d), routes(r) { }
21 };
22
23 } // namespace Marklin
24
25 #endif