aboutsummaryrefslogtreecommitdiff
path: root/scumm/sprite_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-02-04 08:19:10 +0000
committerTravis Howell2006-02-04 08:19:10 +0000
commit529f2602618e36ce3f578ca356f7a7c97d24d5ac (patch)
treef74d01020eb65f213b03df40a8022470f9a3d0a7 /scumm/sprite_he.cpp
parent0c8e751b29c518e673584ec7e4ac045f0fde9fee (diff)
downloadscummvm-rg350-529f2602618e36ce3f578ca356f7a7c97d24d5ac.tar.gz
scummvm-rg350-529f2602618e36ce3f578ca356f7a7c97d24d5ac.tar.bz2
scummvm-rg350-529f2602618e36ce3f578ca356f7a7c97d24d5ac.zip
Cleanup
svn-id: r20367
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r--scumm/sprite_he.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 9bb0c62b6f..9b1185f6f4 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -449,31 +449,31 @@ int Sprite::getGroupDstResNum(int spriteGroupId) {
return _spriteGroups[spriteGroupId].image;
}
-int Sprite::getGroupScale_x_ratio_mul(int spriteGroupId) {
+int Sprite::getGroupXMul(int spriteGroupId) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
return _spriteGroups[spriteGroupId].scale_x_ratio_mul;
}
-int Sprite::getGroupScale_x_ratio_div(int spriteGroupId) {
+int Sprite::getGroupXDiv(int spriteGroupId) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
return _spriteGroups[spriteGroupId].scale_x_ratio_div;
}
-int Sprite::getGroupScale_y_ratio_mul(int spriteGroupId) {
+int Sprite::getGroupYMul(int spriteGroupId) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
return _spriteGroups[spriteGroupId].scale_y_ratio_mul;
}
-int Sprite::getGroupScale_y_ratio_div(int spriteGroupId) {
+int Sprite::getGroupYDiv(int spriteGroupId) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
return _spriteGroups[spriteGroupId].scale_y_ratio_div;
}
-void Sprite::getGrouptx_ty(int spriteGroupId, int32 &tx, int32 &ty) {
+void Sprite::getGroupPosition(int spriteGroupId, int32 &tx, int32 &ty) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
tx = _spriteGroups[spriteGroupId].tx;
@@ -976,7 +976,7 @@ void Sprite::setGroupScaling(int spriteGroupId) {
}
-void Sprite::setGroupScale_x_ratio_mul(int spriteGroupId, int value) {
+void Sprite::setGroupXMul(int spriteGroupId, int value) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
if (_spriteGroups[spriteGroupId].scale_x_ratio_mul != value) {
@@ -986,11 +986,11 @@ void Sprite::setGroupScale_x_ratio_mul(int spriteGroupId, int value) {
}
}
-void Sprite::setGroupScale_x_ratio_div(int spriteGroupId, int value) {
+void Sprite::setGroupXDiv(int spriteGroupId, int value) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
if (value == 0)
- error("setGroupScale_x_ratio_div: Divisor must not be 0");
+ error("setGroupXDiv: Divisor must not be 0");
if (_spriteGroups[spriteGroupId].scale_x_ratio_div != value) {
_spriteGroups[spriteGroupId].scale_x_ratio_div = value;
@@ -999,7 +999,7 @@ void Sprite::setGroupScale_x_ratio_div(int spriteGroupId, int value) {
}
}
-void Sprite::setGroupScale_y_ratio_mul(int spriteGroupId, int value) {
+void Sprite::setGroupYMul(int spriteGroupId, int value) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
if (_spriteGroups[spriteGroupId].scale_y_ratio_mul != value) {
@@ -1009,11 +1009,11 @@ void Sprite::setGroupScale_y_ratio_mul(int spriteGroupId, int value) {
}
}
-void Sprite::setGroupScale_y_ratio_div(int spriteGroupId, int value) {
+void Sprite::setGroupYDiv(int spriteGroupId, int value) {
checkRange(_varNumSpriteGroups, 1, spriteGroupId, "Invalid sprite group %d");
if (value == 0)
- error("setGroupScale_y_ratio_div: Divisor must not be 0");
+ error("setGroupYDiv: Divisor must not be 0");
if (_spriteGroups[spriteGroupId].scale_y_ratio_div != value) {
_spriteGroups[spriteGroupId].scale_y_ratio_div = value;