aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/AISystem.h
blob: 5e94ccb2f381235b0ae91d241d3b74131161c572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "api/AI.h"

#include "System.h"
#include "types.h"

namespace crepe {

class AISystem : public System {
public:
	using System::System;

	void update() override;

private:
	vec2 calculate(AI & ai);
	bool accumulate_force(vec2 & running_total, vec2 force_to_add);

	vec2 seek(const AI & ai);
};

} // namespace crepe