forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharacter_oracle.h
37 lines (31 loc) · 1.04 KB
/
character_oracle.h
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
32
33
34
35
36
37
#pragma once
#ifndef CATA_SRC_CHARACTER_ORACLE_H
#define CATA_SRC_CHARACTER_ORACLE_H
#include <iosfwd>
#include "behavior_oracle.h"
class Character;
namespace behavior
{
enum class status_t : char;
class character_oracle_t : public oracle_t
{
public:
explicit character_oracle_t( const Character *subject ) {
this->subject = subject;
}
/**
* Predicates used by AI to determine goals.
*/
status_t needs_warmth_badly( const std::string & ) const;
status_t needs_water_badly( const std::string & ) const;
status_t needs_food_badly( const std::string & ) const;
status_t can_wear_warmer_clothes( const std::string & ) const;
status_t can_make_fire( const std::string & ) const;
status_t can_take_shelter( const std::string & ) const;
status_t has_water( const std::string & ) const;
status_t has_food( const std::string & ) const;
private:
const Character *subject;
};
} //namespace behavior
#endif // CATA_SRC_CHARACTER_ORACLE_H