forked from fawwazbmn/SocialForceModel
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSocialForce.h
More file actions
31 lines (24 loc) · 732 Bytes
/
Copy pathSocialForce.h
File metadata and controls
31 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SOCIAL_FORCE_H
#define SOCIAL_FORCE_H
#include <vector>
#include "Agent.h"
#include "Wall.h"
class SocialForce {
private:
std::vector<Agent *> crowd;
std::vector<Wall *> walls;
public:
//SocialForce();
~SocialForce();
void addAgent(Agent *agent);
void addWall(Wall *wall);
const std::vector<Agent *> getCrowd() const { return crowd; }
int getCrowdSize() const { return crowd.size(); }
const std::vector<Wall *> getWalls() const { return walls; }
int getNumWalls() const { return walls.size(); }
void removeAgent(); // Removes individual or single group
void removeCrowd(); // Remove all individuals and groups
void removeWalls();
void moveCrowd(float stepTime);
};
#endif