summaryrefslogtreecommitdiff
path: root/src/cObjectHandler.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 01:06:25 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 01:06:25 +0100
commit99249ba62bcdfbe300c6ab7db02088d8d1e118c4 (patch)
treec90f707b593d3d2ff3ba2e06aadadf10da35a696 /src/cObjectHandler.h
parent91312efb1490e899f8800c965865c8095f31f350 (diff)
downloadtermgl-99249ba62bcdfbe300c6ab7db02088d8d1e118c4.tar.gz
Switched to unsigned cariables for all counting loops and buffer accesses
Diffstat (limited to 'src/cObjectHandler.h')
-rw-r--r--src/cObjectHandler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cObjectHandler.h b/src/cObjectHandler.h
index 4a0306b..f53ccd7 100644
--- a/src/cObjectHandler.h
+++ b/src/cObjectHandler.h
@@ -38,30 +38,30 @@ public:
* Adds _object to managed objects vector
* returns Identifier for newly created vector
*/
- int createObject(cObject *_object);
+ unsigned int createObject(cObject *_object);
/**
* Alters position of _object by _pos either relative to old position or Absolute
* Depending on selected _mode (_MOVE_RELATIVE / _MOVE_ABSOLUTE / _MOVE_ABSOLUTE).
* _MOVE_ABSOLUTE not recommended: Collision is only checked at destination. To ensure initialisation, use _MOVE_FORCE_ABSOLUTE!
*/
- int moveObject(int _object, sPos _pos, int _mode);
+ int moveObject(unsigned int _object, sPos _pos, int _mode);
/**
* removes _object from vector after deleting it
*/
- int destroyObject(int _object);
+ int destroyObject(unsigned int _object);
/**
* Analog to createObject()
*/
- int createWiremesh(cWiremesh *_mesh);
+ unsigned int createWiremesh(cWiremesh *_mesh);
- int moveWiremesh(int _mesh, sCoord3d _pos, int _mode);
+ int moveWiremesh(unsigned int _mesh, sCoord3d _pos, int _mode);
- int rotateWiremesh(int _mesh, sCoord3d _angle);
+ int rotateWiremesh(unsigned int _mesh, sCoord3d _angle);
- int destroyWiremesh(int _mesh);
+ int destroyWiremesh(unsigned int _mesh);
void setCameraPosition(sPos _pos, int _mode);