src/proto2/GameState.cc
author terom
Sun, 09 Nov 2008 22:02:03 +0000
changeset 26 5685602aeb9c
child 35 e21cfda0edde
child 50 9e1a6506f5a1
permissions -rw-r--r--
it works \o/

#include "GameState.hh"

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

    } else {
        // valid
        position = p;

        return true;
    }
}