43 if ( not
isOn )
return;
48 }
else if ( qrand() % (20 -
Number(0)*2) ) {
54 return tr(
"Rain Machine") + (
isOn ?
55 tr(
": on") : tr(
": off") );
virtual void SaveAttributes(QDataStream &) const
usage_types Use(Block *who) override
virtual void Damage(int dmg, int dmg_kind)
RainMachine(int sub, int id)
void SetWeather(weathers)
int GetInvSub(int i) const
Returns AIR if slot number i is empty.
int ShouldAct() const override
QString FullName() const override
inner_actions
See Shred::PhysEventsRare() for details.
void ReceiveSignal(QString) override
Receive text signal.
void ReceiveSignal(QString) override
Receive text signal.
void SaveAttributes(QDataStream &) const override
void DoRareAction() override
void Rain(int kind, int sub)
Provides block ability to contain other blocks inside.
Inventory * HasInventory() override
Block without special physics and attributes.
void Damage(int dmg, int dmg_kind) override
virtual void SaveAttributes(QDataStream &out) const