summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-12-11 17:39:25 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-12-11 17:39:25 +0000
commit3fcde31ec23e0bb8f5403e2dcba6ac030fb310a2 (patch)
tree81fc3e70dc98a9ed9f1f86614df8b886508abcfc /src/being.cpp
parentaf7060d953e1c0f54a7d5bf46894191d41d853ff (diff)
downloadmana-client-3fcde31ec23e0bb8f5403e2dcba6ac030fb310a2.tar.gz
mana-client-3fcde31ec23e0bb8f5403e2dcba6ac030fb310a2.tar.bz2
mana-client-3fcde31ec23e0bb8f5403e2dcba6ac030fb310a2.tar.xz
mana-client-3fcde31ec23e0bb8f5403e2dcba6ac030fb310a2.zip
Core sprite classes of the new graphic engine
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 625919a2..92a1989e 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -28,7 +28,7 @@
NODE *player_node = NULL;
NODE *head = NULL; // First node of the list
-unsigned int count = 0; // Number of beings in the list
+unsigned int b_count = 0; // Number of beings in the list
/** Create a path node */
PATH_NODE::PATH_NODE(unsigned short x, unsigned short y):
@@ -67,7 +67,7 @@ NODE::NODE():
/** Returns number of beings in the list */
unsigned int get_count() {
- return count;
+ return b_count;
}
/** Removes all beings from the list */
@@ -79,7 +79,7 @@ void empty() {
delete node;
node = next;
}
- count = 0;
+ b_count = 0;
head = NULL;
}
@@ -91,7 +91,7 @@ void add_node(NODE *node) {
temp = temp->next;
temp->next = node;
} else head = node;
- count++;
+ b_count++;
}
/** Remove a node */
@@ -106,12 +106,12 @@ void remove_node(unsigned int id) {
if(node_new==NULL) {
head = node_old->next;
delete node_old;
- count--;
+ b_count--;
return;
} else {
node_new->next = node_old->next;
delete node_old;
- count--;
+ b_count--;
return;
}
} else {