diff options
author | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 15:18:25 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2015-03-31 15:18:25 -0300 |
commit | c81bc656c6226883b7e3cae5269532123c7dea76 (patch) | |
tree | bf55dd75ef1850adce4586423ff9510f7734b115 /lib/move.c | |
parent | 85cdbcd8fa2867b5e36dc1705fdb17ce4a2a558b (diff) |
add move fields getters
Diffstat (limited to 'lib/move.c')
-rw-r--r-- | lib/move.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -11,7 +11,15 @@ Move move_init(Coord orig, Coord dest) { m.dest = dest; return m; -} +} + +Coord move_get_orig(Move m) { + return m.orig; +} + +Coord move_get_dest(Move m) { + return m.dest; +} /* * Returns 1 if Move is a valid chess movement. |