diff options
Diffstat (limited to 'saga/actor.h')
-rw-r--r-- | saga/actor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/saga/actor.h b/saga/actor.h index 32ea2812a0..5d43efd137 100644 --- a/saga/actor.h +++ b/saga/actor.h @@ -140,6 +140,12 @@ struct Location { int distance(const Location &location) const { return MAX(ABS(x - location.x), ABS(y - location.y)); } + int &u() { + return x; + } + int &v() { + return y; + } void delta(const Location &location, Location &result) const { result.x = x - location.x; result.y = y - location.y; |