src/proto2/GameState.cc
author terom
Mon, 10 Nov 2008 16:49:09 +0000
branchno-netsession
changeset 31 d0d7489d4e8b
parent 26 5685602aeb9c
child 35 e21cfda0edde
child 50 9e1a6506f5a1
permissions -rw-r--r--
add initial code written so far

#include "GameState.hh"

bool Player::updatePosition (Coordinate p) {
    if (!state.isValidCoordinate(p)) {
        // out-of-bounds
        return false;

    } else {
        // valid
        position = p;

        return true;
    }
}