aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-26 15:25:03 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-26 15:25:03 -0400
commit88c21e763178856aef0155595d49085919205951 (patch)
treee3bcd6caa28bf0014eeccd3a3c8582ec2b1b7e7c /main.cpp
parent202285e89814929e551f9568b84212282b5883fe (diff)
mobs are a-okay
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/main.cpp b/main.cpp
index 56d82cd..1753c86 100644
--- a/main.cpp
+++ b/main.cpp
@@ -36,13 +36,11 @@ Player *player;
/**
* TODO
*/
-
GLuint fragShader;
/**
* TODO
*/
-
GLuint shaderProgram;
/**
@@ -50,33 +48,24 @@ GLuint shaderProgram;
* mutex will prevent multiple threads from changing the same data,
* and the condition_variable will wait for threads to reach the same point
*/
-
std::mutex mtx;
std::condition_variable cv;
ThreadPool pool(10);
-/*
- * loops is used for texture animation. It is believed to be passed to entity
- * draw functions, although it may be externally referenced instead.
-*/
-
/**
* TODO
*/
-
GLuint colorIndex;
/**
* TODO
*/
-
GLuint mouseTex;
/**
* Used for texture animation. It is externally referenced by ui.cpp
* and entities.cpp.
*/
-
unsigned int loops = 0;
/**
@@ -648,22 +637,7 @@ void logic(){
}
} else if (e->type == MOBT) {
e->near = player->isNear(*e);
-
- switch (e->subtype) {
- case MS_RABBIT:
- case MS_BIRD:
- e->wander((rand()%240 + 15));
- break;
- case MS_TRIGGER:
- case MS_PAGE:
- e->wander(0);
- break;
- case MS_DOOR:
- break;
- default:
- std::cout<<"Unhandled mob of subtype "<<e->subtype<<"."<<std::endl;
- break;
- }
+ e->wander();
}
}