add wraparound support to C2 physics
[openc2e.git] / Port.h
blobc8ba6cbb4587e236a07097505809f55b68cc9006
1 #ifndef PORT_H
2 #define PORT_H 1
4 #include <string>
5 #include <list>
6 #include "AgentRef.h"
8 // never use this directly, kthx
9 struct Port {
10 Port(int x, int y, std::string name, std::string desc);
11 std::string name;
12 std::string description;
13 int x, y;
16 struct InputPort : public Port {
17 InputPort(int x, int y, std::string name, std::string desc, int messageno);
18 int messageno;
19 AgentRef source;
20 int sourceid;
23 typedef std::list<std::pair<AgentRef, unsigned int> > PortConnectionList;
25 struct OutputPort : public Port {
26 OutputPort(int x, int y, std::string name, std::string desc);
27 PortConnectionList dests; // dest agent + dest port id
30 #endif /* PORT_H */