Debian Codegraph @

src/mas/agentposition.h

raw symbols SCIP
1 /***************************************************************************
2 agentposition.h - description
3 -------------------
4 begin : may 1st, 2008
5 copyright : (C) 2008-2010 by Duong Khang NGUYEN
6 email : neoneurone @ gmail com
7
8 $Id: agentposition.h 448 2010-05-09 15:18:32Z neoneurone $
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * any later version. *
17 * *
18 ***************************************************************************/
19
20
21 #ifndef _OPENCITY_MAS_AGENTPOSITION_H_
22 #define _OPENCITY_MAS_AGENTPOSITION_H_ 1
23
24
25 //========================================================================
26 /** Utility class used to handle each agent's position
27 */
28 class AgentPosition
29 {
30 public:
31 int x, y; ///< 2D coordinates of the agent on the map
32 unsigned long step;
33
34 AgentPosition() : x(-1), y(-1), step(0) {}
35 AgentPosition(int xx, int yy, unsigned long xstep) : x(xx), y(yy), step(xstep) {}
36 AgentPosition(const AgentPosition& p) : x(p.x), y(p.y), step(p.step) {}
37 };
38
39 #endif