about summary refs log tree commit diff stats
path: root/apworld/options.py
Commit message (Collapse)AuthorAgeFilesLines
* Set apworld victory conditionStar Rauchenberger2025-08-271-1/+20
|
* Items and connections in the apworldStar Rauchenberger2025-08-121-2/+7
|
* Started apworldStar Rauchenberger2025-08-071-0/+8
vcpkg's libprotobuf is older than what PIP has, but neither are completely up to date either. Ugh. Doors have a room now because that's where the location will go.
f75965f8202c8478622763a27ef1848a8ed1a'>ae5f759 ^
dc210ee ^


ae5f759 ^


e5f284e ^
ae5f759 ^





















dc210ee ^


ae5f759 ^





















e5f284e ^
ae5f759 ^

dc210ee ^






e5f284e ^




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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95




                         
                              
            


                                    
      














                                              


                                                     


                      
           





















                                                         


                                                     





















                                              
      

                                         






                                                       




                                                    
#ifndef ADVERB_H_86F8302F
#define ADVERB_H_86F8302F

namespace verbly {
  
  class adverb : public word {
    private:
      std::string _base_form;
      std::string _comparative_form;
      std::string _superlative_form;
      
      friend class adverb_query;
      
    public:
      adverb(const data& _data, int _id);
      
      std::string base_form() const;
      std::string comparative_form() const;
      std::string superlative_form() const;
      
      bool has_comparative_form() const;
      bool has_superlative_form() const;
      
      adverb_query antonyms() const;
      adverb_query synonyms() const;
      adjective_query anti_mannernyms() const;
      
      adverb_query& derived_from(const word& _w);
      adverb_query& not_derived_from(const word& _w);
  };
  
  class adverb_query {
    public:
      adverb_query(const data& _data);
      
      adverb_query& limit(int _limit);
      adverb_query& random(bool _random);
      adverb_query& except(const adverb& _word);
      adverb_query& rhymes_with(const word& _word);
      adverb_query& has_pronunciation(bool _has_prn);
      
      adverb_query& requires_comparative_form(bool _arg);
      adverb_query& requires_superlative_form(bool _arg);
      
      adverb_query& has_antonyms(bool _arg);
      adverb_query& antonym_of(const adverb& _adv);
      adverb_query& not_antonym_of(const adverb& _adv);
      
      adverb_query& has_synonyms(bool _arg);
      adverb_query& synonym_of(const adverb& _adv);
      adverb_query& not_synonym_of(const adverb& _adv);
      
      adverb_query& is_mannernymic(bool _arg);
      adverb_query& mannernym_of(const adjective& _adj);
      
      adverb_query& derived_from(const word& _w);
      adverb_query& not_derived_from(const word& _w);
      
      std::list<adverb> run() const;
      
      const static int unlimited = -1;
      
    private:
      const data& _data;
      int _limit = unlimited;
      bool _random = false;
      std::list<std::string> _rhymes;
      std::list<adverb> _except;
      bool _has_prn = false;
      
      bool _requires_comparative_form = false;
      bool _requires_superlative_form = false;
      
      bool _has_antonyms = false;
      std::list<adverb> _antonym_of;
      std::list<adverb> _not_antonym_of;
      
      bool _has_synonyms = false;
      std::list<adverb> _synonym_of;
      std::list<adverb> _not_synonym_of;
      
      bool _is_mannernymic = false;
      std::list<adjective> _mannernym_of;
      
      std::list<adjective> _derived_from_adjective;
      std::list<adjective> _not_derived_from_adjective;
      std::list<adverb> _derived_from_adverb;
      std::list<adverb> _not_derived_from_adverb;
      std::list<noun> _derived_from_noun;
      std::list<noun> _not_derived_from_noun;
  };
  
};

#endif /* end of include guard: ADVERB_H_86F8302F */