summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/Systems/AI/btnode.h
blob: b025da67d533574329e01734f94ec77c9ebe3798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef BTNODE_H
#define BTNODE_H


enum Status{
    SUCCESS, FAIL, RUNNING
};

class BTNode
{
public:
    BTNode();
    virtual ~BTNode() = default;
    virtual Status update(float seconds) = 0;
    virtual void reset() = 0;
    virtual void addChildren(BTNode *node) = 0;
};
#endif // BTNODE_H