Debian Codegraph @

Sources/Jazz2/Actors/Collectibles/FoodCollectible.h

raw symbols SCIP
1 #pragma once
2
3 #include "CollectibleBase.h"
4
5 namespace Jazz2::Actors::Collectibles
6 {
7 /** @brief Food type */
8 enum class FoodType
9 {
10 Apple = 1,
11 Banana = 2,
12 Cherry = 3,
13 Orange = 4,
14 Pear = 5,
15 Pretzel = 6,
16 Strawberry = 7,
17 Lemon = 8,
18 Lime = 9,
19 Thing = 10,
20 WaterMelon = 11,
21 Peach = 12,
22 Grapes = 13,
23 Lettuce = 14,
24 Eggplant = 15,
25 Cucumber = 16,
26 Pepsi = 17,
27 Coke = 18,
28 Milk = 19,
29 Pie = 20,
30 Cake = 21,
31 Donut = 22,
32 Cupcake = 23,
33 Chips = 24,
34 Candy = 25,
35 Chocolate = 26,
36 IceCream = 27,
37 Burger = 28,
38 Pizza = 29,
39 Fries = 30,
40 ChickenLeg = 31,
41 Sandwich = 32,
42 Taco = 33,
43 HotDog = 34,
44 Ham = 35,
45 Cheese = 36,
46 };
47
48 /** @brief Food (collectible) */
49 class FoodCollectible : public CollectibleBase
50 {
51 DEATH_RUNTIME_OBJECT(CollectibleBase);
52
53 public:
54 FoodCollectible();
55
56 static void Preload(const ActorActivationDetails& details);
57
58 protected:
59 #ifndef DOXYGEN_GENERATING_OUTPUT
60 bool _isDrinkable;
61 #endif
62
63 Task<bool> OnActivatedAsync(const ActorActivationDetails& details) override;
64 void OnCollect(Player* player) override;
65 };
66 }