- remove old stuff

- work on "walking" in progress

svn-id: r16298
This commit is contained in:
Andrew Kurushin 2004-12-24 20:44:39 +00:00
parent f0bc27f11c
commit 2289ea371b
15 changed files with 350 additions and 744 deletions

View file

@ -555,6 +555,8 @@ int Interface::handleCommandUpdate(SURFACE *ds, const Point& imousePt) {
}
int Interface::handlePlayfieldClick(SURFACE *ds, const Point& imousePt) {
return FALSE;
/*
int objectNum;
uint16 object_flags = 0;
@ -566,6 +568,8 @@ int Interface::handlePlayfieldClick(SURFACE *ds, const Point& imousePt) {
if (objectNum == -1) {
// Player clicked on empty spot - walk here regardless of verb
_vm->_actor->StoA(iactor_pt, imousePt);
error("!");
_vm->_actor->walkTo(1, &iactor_pt, 0, NULL);
return SUCCESS;
}
@ -585,13 +589,17 @@ int Interface::handlePlayfieldClick(SURFACE *ds, const Point& imousePt) {
} else {
// Not a normal scene object - walk to it as if it weren't there
_vm->_actor->StoA(iactor_pt, imousePt);
_vm->_actor->walkTo(1, &iactor_pt, 0, NULL);
// _vm->_actor->walkTo(1, &iactor_pt, 0, NULL);
error("!");
}
return SUCCESS;
return SUCCESS;*/
}
int Interface::handlePlayfieldUpdate(SURFACE *ds, const Point& imousePt) {
return FALSE;
/*
const char *object_name;
int objectNum;
uint16 object_flags = 0;
@ -623,6 +631,7 @@ int Interface::handlePlayfieldUpdate(SURFACE *ds, const Point& imousePt) {
setStatusText(new_status);
return SUCCESS;
*/
}
int Interface::hitTest(const Point& imousePt, int *ibutton) {