示例#1
0
bool World::GetPToCFieldAt(Field* &fip, position pos) {

    Map *temp;

    if (maps.findMapForPos(pos, temp)) {
        return temp->GetPToCFieldAt(fip, pos.x, pos.y);
    }

    return false;

}
示例#2
0
bool World::GetPToCFieldAt(Field* &fip, short int x, short int y, short int z) {

    Map *temp;

    if (maps.findMapForPos(x, y, z, temp)) {
        return temp->GetPToCFieldAt(fip, x, y);
    } else {
        return false;
    }

}