diff options
author | Nicola Mettifogo | 2007-08-28 14:30:17 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-28 14:30:17 +0000 |
commit | 771f3e5306703f6c83b042bd5839908de6377aa1 (patch) | |
tree | 80967d53f5a1679581558b616850b65e6b62af1c /engines/parallaction/parallaction.h | |
parent | a4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4 (diff) | |
download | scummvm-rg350-771f3e5306703f6c83b042bd5839908de6377aa1.tar.gz scummvm-rg350-771f3e5306703f6c83b042bd5839908de6377aa1.tar.bz2 scummvm-rg350-771f3e5306703f6c83b042bd5839908de6377aa1.zip |
Enforced use of character's feet coordinates throughout the walk code.
svn-id: r28760
Diffstat (limited to 'engines/parallaction/parallaction.h')
-rw-r--r-- | engines/parallaction/parallaction.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 5685d28b8f..8bd42bc6c1 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -259,6 +259,17 @@ struct Character { _ani._label._text = strdup("yourself"); } + void getFoot(Common::Point &foot) { + foot.x = _ani._left + _ani.width() / 2; + foot.y = _ani._top + _ani.height(); + } + + void setFoot(const Common::Point &foot) { + _ani._left = foot.x - _ani.width() / 2; + _ani._top = foot.y - _ani.height(); + } + + }; |