summaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 6ad0e3f..a2c2d87 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -2,9 +2,16 @@
void Entity::Place()
{
- if(type == 1)
- SDL_SetRenderDrawColor(renderer,255,0,255,255);
- else
+ if(type == CREATURE_TYPE){
+ if(gender)
+ SDL_SetRenderDrawColor(renderer,255,0,0,255);
+ else
+ if(pregnate)
+ SDL_SetRenderDrawColor(renderer,255,0,255,255);
+ else
+ SDL_SetRenderDrawColor(renderer,0,0,255,255);
+ }
+ else if (type == RESOURCE_TYPE)
SDL_SetRenderDrawColor(renderer,0,255,0,255);
SDL_RenderFillRect(renderer, &rect);