summaryrefslogtreecommitdiff
path: root/src/beingmanager.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-26 22:22:22 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-06 00:27:26 +0100
commitc75511fffc77d517fbf854ec8bef791f055de44c (patch)
treec431846c7d7a6934f103d21129a20a0dc4fd1c8e /src/beingmanager.h
parent646cc317351d60e0fefcab789248310662fcbbc8 (diff)
downloadmana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.gz
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.bz2
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.xz
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.zip
Got rid of Sint{8,16,32} and Uint32 for being ID
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
Diffstat (limited to 'src/beingmanager.h')
-rw-r--r--src/beingmanager.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/beingmanager.h b/src/beingmanager.h
index 02c83725..6c0e0fda 100644
--- a/src/beingmanager.h
+++ b/src/beingmanager.h
@@ -49,7 +49,7 @@ class BeingManager
/**
* Create a being and add it to the list of beings.
*/
- Being *createBeing(Uint32 id, Uint16 job);
+ Being *createBeing(int id, Uint16 job);
/**
* Remove a Being.
@@ -59,13 +59,13 @@ class BeingManager
/**
* Return a specific id Being.
*/
- Being* findBeing(Uint32 id);
- Being* findBeingByPixel(Uint16 x, Uint16 y);
+ Being *findBeing(int id);
+ Being *findBeingByPixel(int x, int y);
/**
* Returns a being at specific coordinates.
*/
- Being* findBeing(Uint16 x, Uint16 y, Being::Type type = Being::UNKNOWN);
+ Being *findBeing(int x, int y, Being::Type type = Being::UNKNOWN);
/**
* Returns a being nearest to specific coordinates.
@@ -76,13 +76,13 @@ class BeingManager
* no being is returned.
* @param type The type of being to look for.
*/
- Being* findNearestLivingBeing(Uint16 x, Uint16 y, int maxdist,
+ Being *findNearestLivingBeing(int x, int y, int maxdist,
Being::Type type = Being::UNKNOWN);
/**
* Finds a being by name and (optionally) by type.
*/
- Being* findBeingByName(std::string name, Being::Type type = Being::UNKNOWN);
+ Being *findBeingByName(std::string name, Being::Type type = Being::UNKNOWN);
/**
* Returns a being nearest to another being.
@@ -90,7 +90,7 @@ class BeingManager
* \param maxdist maximal distance. If minimal distance is larger,
* no being is returned
*/
- Being* findNearestLivingBeing(Being *aroundBeing, int maxdist,
+ Being *findNearestLivingBeing(Being *aroundBeing, int maxdist,
Being::Type type = Being::UNKNOWN);
/**