DayZ 1.24
Loading...
Searching...
No Matches
Bottle_Base Class Reference
Inheritance diagram for Bottle_Base:
[legend]

Private Member Functions

void CanisterGasoline ()
 
void ~CanisterGasoline ()
 
override bool IsContainer ()
 
override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override float GetLiquidThroughputCoef ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool IsOpen ()
 
void Canteen ()
 
void ~Canteen ()
 
override bool IsContainer ()
 
override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool IsOpen ()
 
override void EEOnCECreate ()
 
void Cauldron ()
 
void ~Cauldron ()
 
override bool IsContainer ()
 
override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
override bool IsOpen ()
 
override bool CanHaveWetness ()
 
override void SetActions ()
 
void Pot ()
 
void ~Pot ()
 
override bool IsContainer ()
 
override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
override bool IsOpen ()
 
override bool CanHaveWetness ()
 
override void SetActions ()
 
void WaterBottle ()
 
void ~WaterBottle ()
 
override bool IsContainer ()
 
override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool IsOpen ()
 
override void EEOnCECreate ()
 

Detailed Description

Definition at line 1 of file CanisterGasoline.c.

Constructor & Destructor Documentation

◆ ~CanisterGasoline()

void Bottle_Base::~CanisterGasoline ( )
inlineprivate

Definition at line 7 of file CanisterGasoline.c.

8 {
9 }

◆ ~Canteen()

void Bottle_Base::~Canteen ( )
inlineprivate

Definition at line 8 of file Canteen.c.

9 {
10
11 }

◆ ~Cauldron()

void Bottle_Base::~Cauldron ( )
inlineprivate

Definition at line 8 of file Cauldron.c.

9 {
10
11 }

◆ ~Pot()

void Bottle_Base::~Pot ( )
private

◆ ~WaterBottle()

void Bottle_Base::~WaterBottle ( )
inlineprivate

Definition at line 8 of file WaterBottle.c.

9 {
10
11 }

Member Function Documentation

◆ CanHaveWetness() [1/2]

override bool Bottle_Base::CanHaveWetness ( )
inlineprivate

Definition at line 99 of file Cauldron.c.

100 {
101 return true;
102 }

◆ CanHaveWetness() [2/2]

override bool Bottle_Base::CanHaveWetness ( )
inlineprivate

Definition at line 116 of file Pot.c.

117 {
118 return true;
119 }

◆ CanisterGasoline()

void Bottle_Base::CanisterGasoline ( )
inlineprivate

Definition at line 3 of file CanisterGasoline.c.

4 {
5 }

◆ CanLoadItemIntoCargo() [1/2]

override bool Bottle_Base::CanLoadItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 83 of file Cauldron.c.

84 {
85 if (!super.CanLoadItemIntoCargo(item))
86 return false;
87
89 return false;
90
91 return true;
92 }
bool IsCargoException4x3(EntityAI item)
Definition ItemBase.c:9270

References IsCargoException4x3().

◆ CanLoadItemIntoCargo() [2/2]

override bool Bottle_Base::CanLoadItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 88 of file Pot.c.

89 {
90 if (!super.CanLoadItemIntoCargo(item))
91 return false;
92
94 return false;
95
96 //can 'this' be attached to the item (->assumed smaller size than item)?
97 int slotId;
98 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
99 {
100 slotId = GetInventory().GetSlotId(i);
101 if (item.GetInventory().HasAttachmentSlot(slotId))
102 {
103 //Print("CanLoadItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
104 return false;
105 }
106 }
107
108 return true;
109 }

References IsCargoException4x3().

◆ CanPutInCargo() [1/5]

override bool Bottle_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 56 of file CanisterGasoline.c.

57 {
58 if (!super.CanPutInCargo(parent)) return false;
59 if (parent && (parent.IsKindOf("CanisterGasoline"))/* && !(parent.IsKindOf("Container_Base"))*/)
60 return false;
61
62 return true;
63 }

◆ CanPutInCargo() [2/5]

override bool Bottle_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 53 of file Canteen.c.

54 {
55 if (!super.CanPutInCargo(parent)) return false;
56 if (parent && (parent.IsKindOf("Canteen"))/* && !(parent.IsKindOf("Container_Base"))*/)
57 return false;
58
59 return true;
60 }

◆ CanPutInCargo() [3/5]

override bool Bottle_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 53 of file Cauldron.c.

54 {
55 if (!super.CanPutInCargo(parent))
56 return false;
57
58 if (parent && IsCargoException4x3(parent))
59 return false;
60
61 //is 'parent' somewhere in cargo?
62 if (parent && parent.GetInventory().IsCargoInHiearchy())
63 return false;
64
65 return true;
66 }

References IsCargoException4x3().

◆ CanPutInCargo() [4/5]

override bool Bottle_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 46 of file Pot.c.

47 {
48 if (!super.CanPutInCargo(parent))
49 return false;
50
51 if (parent && IsCargoException4x3(parent))
52 return false;
53
54 //is 'parent' somewhere in cargo?
55 if (parent && parent.GetInventory().IsCargoInHiearchy())
56 return false;
57
58 return true;
59 }

References IsCargoException4x3().

◆ CanPutInCargo() [5/5]

override bool Bottle_Base::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 53 of file WaterBottle.c.

54 {
55 if (!super.CanPutInCargo(parent)) return false;
56 if (parent && (parent.IsKindOf("WatterBottle"))/* && !(parent.IsKindOf("Container_Base"))*/)
57 return false;
58
59 return true;
60 }

◆ CanReceiveItemIntoCargo() [1/2]

override bool Bottle_Base::CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 68 of file Cauldron.c.

69 {
70 if (!super.CanReceiveItemIntoCargo(item))
71 return false;
72
74 return false;
75
76 //is 'this' somewhere in cargo?
77 if (GetInventory().IsCargoInHiearchy())
78 return false;
79
80 return true;
81 }

References IsCargoException4x3().

◆ CanReceiveItemIntoCargo() [2/2]

override bool Bottle_Base::CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

Definition at line 61 of file Pot.c.

62 {
63 if (!super.CanReceiveItemIntoCargo(item))
64 return false;
65
67 return false;
68
69 //is 'this' somewhere in cargo?
70 if (GetInventory().IsCargoInHiearchy())
71 return false;
72
73 //can 'this' be attached to the item (->assumed smaller size than item)?
74 int slotId;
75 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
76 {
77 slotId = GetInventory().GetSlotId(i);
78 if (item.GetInventory().HasAttachmentSlot(slotId))
79 {
80 //Print("CanReceiveItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
81 return false;
82 }
83 }
84
85 return true;
86 }

References IsCargoException4x3().

◆ Canteen()

void Bottle_Base::Canteen ( )
inlineprivate

Definition at line 3 of file Canteen.c.

4 {
5
6 }

◆ Cauldron()

void Bottle_Base::Cauldron ( )
inlineprivate

Definition at line 3 of file Cauldron.c.

4 {
5
6 }

◆ EEOnCECreate() [1/2]

override void Bottle_Base::EEOnCECreate ( )
inlineprivate

Definition at line 67 of file Canteen.c.

68 {
69 super.EEOnCECreate();
70
71 int rand = Math.RandomInt(0, 10);
72 if (rand > 5)
73 InsertAgent(eAgents.CHOLERA, 1);
74 }
eAgents
Definition EAgents.c:3
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8539
Definition EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

References InsertAgent(), and Math::RandomInt().

◆ EEOnCECreate() [2/2]

override void Bottle_Base::EEOnCECreate ( )
inlineprivate

Definition at line 67 of file WaterBottle.c.

68 {
69 super.EEOnCECreate();
70
71 int rand = Math.RandomInt(0, 10);
72 if (rand > 5)
73 InsertAgent(eAgents.CHOLERA, 1);
74 }

References InsertAgent(), and Math::RandomInt().

◆ GetEmptyingEndSoundsetHard() [1/5]

override string Bottle_Base::GetEmptyingEndSoundsetHard ( )
inlineprivate

Definition at line 36 of file CanisterGasoline.c.

37 {
38 return "pour_End_HardGround_GasolineCanister_SoundSet";
39 }

Referenced by GetEmptyingEndSoundset().

◆ GetEmptyingEndSoundsetHard() [2/5]

override string Bottle_Base::GetEmptyingEndSoundsetHard ( )
inlineprivate

Definition at line 38 of file Canteen.c.

39 {
40 return "pour_End_HardGround_Canteen_SoundSet";
41 }

◆ GetEmptyingEndSoundsetHard() [3/5]

override string Bottle_Base::GetEmptyingEndSoundsetHard ( )
inlineprivate

Definition at line 38 of file Cauldron.c.

39 {
40 return "pour_End_HardGround_Pot_SoundSet";
41 }

◆ GetEmptyingEndSoundsetHard() [4/5]

override string Bottle_Base::GetEmptyingEndSoundsetHard ( )
inlineprivate

Definition at line 31 of file Pot.c.

32 {
33 return "pour_End_HardGround_Pot_SoundSet";
34 }

◆ GetEmptyingEndSoundsetHard() [5/5]

override string Bottle_Base::GetEmptyingEndSoundsetHard ( )
inlineprivate

Definition at line 38 of file WaterBottle.c.

39 {
40 return "pour_End_HardGround_WatterBottle_SoundSet";
41 }

◆ GetEmptyingEndSoundsetSoft() [1/5]

override string Bottle_Base::GetEmptyingEndSoundsetSoft ( )
inlineprivate

Definition at line 41 of file CanisterGasoline.c.

42 {
43 return "pour_End_SoftGround_GasolineCanister_SoundSet";
44 }

Referenced by GetEmptyingEndSoundset().

◆ GetEmptyingEndSoundsetSoft() [2/5]

override string Bottle_Base::GetEmptyingEndSoundsetSoft ( )
inlineprivate

Definition at line 43 of file Canteen.c.

44 {
45 return "pour_End_SoftGround_Canteen_SoundSet";
46 }

◆ GetEmptyingEndSoundsetSoft() [3/5]

override string Bottle_Base::GetEmptyingEndSoundsetSoft ( )
inlineprivate

Definition at line 43 of file Cauldron.c.

44 {
45 return "pour_End_SoftGround_Pot_SoundSet";
46 }

◆ GetEmptyingEndSoundsetSoft() [4/5]

override string Bottle_Base::GetEmptyingEndSoundsetSoft ( )
inlineprivate

Definition at line 36 of file Pot.c.

37 {
38 return "pour_End_SoftGround_Pot_SoundSet";
39 }

◆ GetEmptyingEndSoundsetSoft() [5/5]

override string Bottle_Base::GetEmptyingEndSoundsetSoft ( )
inlineprivate

Definition at line 43 of file WaterBottle.c.

44 {
45 return "pour_End_SoftGround_WatterBottle_SoundSet";
46 }

◆ GetEmptyingEndSoundsetWater() [1/5]

override string Bottle_Base::GetEmptyingEndSoundsetWater ( )
inlineprivate

Definition at line 46 of file CanisterGasoline.c.

47 {
48 return "pour_End_Water_GasolineCanister_SoundSet";
49 }

Referenced by GetEmptyingEndSoundset().

◆ GetEmptyingEndSoundsetWater() [2/5]

override string Bottle_Base::GetEmptyingEndSoundsetWater ( )
inlineprivate

Definition at line 48 of file Canteen.c.

49 {
50 return "pour_End_Water_Canteen_SoundSet";
51 }

◆ GetEmptyingEndSoundsetWater() [3/5]

override string Bottle_Base::GetEmptyingEndSoundsetWater ( )
inlineprivate

Definition at line 48 of file Cauldron.c.

49 {
50 return "pour_End_Water_Pot_SoundSet";
51 }

◆ GetEmptyingEndSoundsetWater() [4/5]

override string Bottle_Base::GetEmptyingEndSoundsetWater ( )
inlineprivate

Definition at line 41 of file Pot.c.

42 {
43 return "pour_End_Water_Pot_SoundSet";
44 }

◆ GetEmptyingEndSoundsetWater() [5/5]

override string Bottle_Base::GetEmptyingEndSoundsetWater ( )
inlineprivate

Definition at line 48 of file WaterBottle.c.

49 {
50 return "pour_End_Water_WatterBottle_SoundSet";
51 }

◆ GetEmptyingLoopSoundsetHard() [1/5]

override string Bottle_Base::GetEmptyingLoopSoundsetHard ( )
inlineprivate

Definition at line 21 of file CanisterGasoline.c.

22 {
23 return "pour_HardGround_GasolineCanister_SoundSet";
24 }

Referenced by GetEmptyingLoopSoundset().

◆ GetEmptyingLoopSoundsetHard() [2/5]

override string Bottle_Base::GetEmptyingLoopSoundsetHard ( )
inlineprivate

Definition at line 23 of file Canteen.c.

24 {
25 return "pour_HardGround_Canteen_SoundSet";
26 }

◆ GetEmptyingLoopSoundsetHard() [3/5]

override string Bottle_Base::GetEmptyingLoopSoundsetHard ( )
inlineprivate

Definition at line 23 of file Cauldron.c.

24 {
25 return "pour_HardGround_Pot_SoundSet";
26 }

◆ GetEmptyingLoopSoundsetHard() [4/5]

override string Bottle_Base::GetEmptyingLoopSoundsetHard ( )
inlineprivate

Definition at line 16 of file Pot.c.

17 {
18 return "pour_HardGround_Pot_SoundSet";
19 }

◆ GetEmptyingLoopSoundsetHard() [5/5]

override string Bottle_Base::GetEmptyingLoopSoundsetHard ( )
inlineprivate

Definition at line 23 of file WaterBottle.c.

24 {
25 return "pour_HardGround_WatterBottle_SoundSet";
26 }

◆ GetEmptyingLoopSoundsetSoft() [1/5]

override string Bottle_Base::GetEmptyingLoopSoundsetSoft ( )
inlineprivate

Definition at line 26 of file CanisterGasoline.c.

27 {
28 return "pour_SoftGround_GasolineCanister_SoundSet";
29 }

Referenced by GetEmptyingLoopSoundset().

◆ GetEmptyingLoopSoundsetSoft() [2/5]

override string Bottle_Base::GetEmptyingLoopSoundsetSoft ( )
inlineprivate

Definition at line 28 of file Canteen.c.

29 {
30 return "pour_SoftGround_Canteen_SoundSet";
31 }

◆ GetEmptyingLoopSoundsetSoft() [3/5]

override string Bottle_Base::GetEmptyingLoopSoundsetSoft ( )
inlineprivate

Definition at line 28 of file Cauldron.c.

29 {
30 return "pour_SoftGround_Pot_SoundSet";
31 }

◆ GetEmptyingLoopSoundsetSoft() [4/5]

override string Bottle_Base::GetEmptyingLoopSoundsetSoft ( )
inlineprivate

Definition at line 21 of file Pot.c.

22 {
23 return "pour_SoftGround_Pot_SoundSet";
24 }

◆ GetEmptyingLoopSoundsetSoft() [5/5]

override string Bottle_Base::GetEmptyingLoopSoundsetSoft ( )
inlineprivate

Definition at line 28 of file WaterBottle.c.

29 {
30 return "pour_SoftGround_WatterBottle_SoundSet";
31 }

◆ GetEmptyingLoopSoundsetWater() [1/5]

override string Bottle_Base::GetEmptyingLoopSoundsetWater ( )
inlineprivate

Definition at line 31 of file CanisterGasoline.c.

32 {
33 return "pour_Water_GasolineCanister_SoundSet";
34 }

Referenced by GetEmptyingLoopSoundset().

◆ GetEmptyingLoopSoundsetWater() [2/5]

override string Bottle_Base::GetEmptyingLoopSoundsetWater ( )
inlineprivate

Definition at line 33 of file Canteen.c.

34 {
35 return "pour_Water_Canteen_SoundSet";
36 }

◆ GetEmptyingLoopSoundsetWater() [3/5]

override string Bottle_Base::GetEmptyingLoopSoundsetWater ( )
inlineprivate

Definition at line 33 of file Cauldron.c.

34 {
35 return "pour_Water_Pot_SoundSet";
36 }

◆ GetEmptyingLoopSoundsetWater() [4/5]

override string Bottle_Base::GetEmptyingLoopSoundsetWater ( )
inlineprivate

Definition at line 26 of file Pot.c.

27 {
28 return "pour_Water_Pot_SoundSet";
29 }

◆ GetEmptyingLoopSoundsetWater() [5/5]

override string Bottle_Base::GetEmptyingLoopSoundsetWater ( )
inlineprivate

Definition at line 33 of file WaterBottle.c.

34 {
35 return "pour_Water_WatterBottle_SoundSet";
36 }

◆ GetLiquidThroughputCoef()

override float Bottle_Base::GetLiquidThroughputCoef ( )
inlineprivate

Definition at line 51 of file CanisterGasoline.c.

52 {
54 }
const float LIQUID_THROUGHPUT_GASOLINECANISTER
Definition constants.c:525

References LIQUID_THROUGHPUT_GASOLINECANISTER.

◆ GetPouringSoundset() [1/5]

override string Bottle_Base::GetPouringSoundset ( )
inlineprivate

Definition at line 16 of file CanisterGasoline.c.

17 {
18 return "emptyVessle_CanisterGasoline_SoundSet";
19 }

Referenced by PlayPouringLoopSound().

◆ GetPouringSoundset() [2/5]

override string Bottle_Base::GetPouringSoundset ( )
inlineprivate

Definition at line 18 of file Canteen.c.

19 {
20 return "emptyVessle_Canteen_SoundSet";
21 }

◆ GetPouringSoundset() [3/5]

override string Bottle_Base::GetPouringSoundset ( )
inlineprivate

Definition at line 18 of file Cauldron.c.

19 {
20 return "emptyVessle_Pot_SoundSet";
21 }

◆ GetPouringSoundset() [4/5]

override string Bottle_Base::GetPouringSoundset ( )
inlineprivate

Definition at line 11 of file Pot.c.

12 {
13 return "emptyVessle_Pot_SoundSet";
14 }

◆ GetPouringSoundset() [5/5]

override string Bottle_Base::GetPouringSoundset ( )
inlineprivate

Definition at line 18 of file WaterBottle.c.

19 {
20 return "emptyVessle_WaterBottle_SoundSet";
21 }

◆ IsContainer() [1/5]

override bool Bottle_Base::IsContainer ( )
inlineprivate

Definition at line 11 of file CanisterGasoline.c.

12 {
13 return true;
14 }

◆ IsContainer() [2/5]

override bool Bottle_Base::IsContainer ( )
inlineprivate

Definition at line 13 of file Canteen.c.

14 {
15 return true;
16 }

◆ IsContainer() [3/5]

override bool Bottle_Base::IsContainer ( )
inlineprivate

Definition at line 13 of file Cauldron.c.

14 {
15 return true;
16 }

◆ IsContainer() [4/5]

override bool Bottle_Base::IsContainer ( )
inlineprivate

Definition at line 6 of file Pot.c.

7 {
8 return true;
9 }

◆ IsContainer() [5/5]

override bool Bottle_Base::IsContainer ( )
inlineprivate

Definition at line 13 of file WaterBottle.c.

14 {
15 return true;
16 }

◆ IsOpen() [1/5]

override bool Bottle_Base::IsOpen ( )
inlineprivate

Definition at line 65 of file CanisterGasoline.c.

66 {
67 return true;
68 }

◆ IsOpen() [2/5]

override bool Bottle_Base::IsOpen ( )
inlineprivate

Definition at line 62 of file Canteen.c.

63 {
64 return true;
65 }

◆ IsOpen() [3/5]

override bool Bottle_Base::IsOpen ( )
inlineprivate

Definition at line 94 of file Cauldron.c.

95 {
96 return true;
97 }

◆ IsOpen() [4/5]

override bool Bottle_Base::IsOpen ( )
inlineprivate

Definition at line 111 of file Pot.c.

112 {
113 return true;
114 }

◆ IsOpen() [5/5]

override bool Bottle_Base::IsOpen ( )
inlineprivate

Definition at line 62 of file WaterBottle.c.

63 {
64 return true;
65 }

◆ Pot()

void Bottle_Base::Pot ( )
private

◆ SetActions() [1/2]

override void Bottle_Base::SetActions ( )
inlineprivate

◆ SetActions() [2/2]

override void Bottle_Base::SetActions ( )
inlineprivate

Definition at line 121 of file Pot.c.

References AddAction(), and RemoveAction().

◆ WaterBottle()

void Bottle_Base::WaterBottle ( )
inlineprivate

Definition at line 3 of file WaterBottle.c.

4 {
5
6 }

The documentation for this class was generated from the following files: