aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/AI.cpp6
-rw-r--r--src/crepe/api/AI.h7
2 files changed, 2 insertions, 11 deletions
diff --git a/src/crepe/api/AI.cpp b/src/crepe/api/AI.cpp
index 7f820a8..d785bb5 100644
--- a/src/crepe/api/AI.cpp
+++ b/src/crepe/api/AI.cpp
@@ -2,10 +2,6 @@
namespace crepe {
-AI::AI(game_object_id_t id, float mass, float max_speed, float max_force)
- : Component(id),
- mass(mass),
- max_speed(max_speed),
- max_force(max_force) {}
+AI::AI(game_object_id_t id, float max_force) : Component(id), max_force(max_force) {}
} // namespace crepe
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h
index 242ff89..046426d 100644
--- a/src/crepe/api/AI.h
+++ b/src/crepe/api/AI.h
@@ -16,7 +16,7 @@ public:
};
public:
- AI(game_object_id_t id, float mass, float max_speed, float max_force);
+ AI(game_object_id_t id, float max_force);
bool on(BehaviorType behavior) const { return (flags & behavior) == behavior; }
void seek_on() { flags |= SEEK; }
@@ -37,8 +37,6 @@ public:
}
public:
- float mass;
- float max_speed;
float max_force;
// The target to seek or arrive at
@@ -51,9 +49,6 @@ public:
float arrive_deceleration = 2.0f;
private:
- vec2 velocity;
- friend class AISystem;
-
int flags = 0;
};