src/proto2/Dimension.cc
author terom
Mon, 10 Nov 2008 16:49:09 +0000
branchno-netsession
changeset 31 d0d7489d4e8b
parent 24 b81cb670e6b2
permissions -rw-r--r--
add initial code written so far
23
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     1
#include "Dimension.hh"
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     2
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     3
std::ostream& operator<< (std::ostream &s, const Coordinate &c) {
24
b81cb670e6b2 the great :retab
terom
parents: 23
diff changeset
     4
    s << "(" << c.x << ", " << c.y << ")";
23
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     5
24
b81cb670e6b2 the great :retab
terom
parents: 23
diff changeset
     6
    return s;
23
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     7
}
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     8
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
     9
std::ostream& operator<< (std::ostream &s, const PositionDelta &c) {
24
b81cb670e6b2 the great :retab
terom
parents: 23
diff changeset
    10
    s << "(" << c.dx << ", " << c.dy << ")";
23
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
    11
24
b81cb670e6b2 the great :retab
terom
parents: 23
diff changeset
    12
    return s;
23
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
    13
}
8d802b573cf0 fixed more network code, there's actually a high probability of it working now
terom
parents:
diff changeset
    14