|
| Bucket (int sub, int id) |
|
| Bucket (QDataStream &str, int sub, int id) |
|
int | Weight () const override |
|
void | ReceiveSignal (QString str) override |
| Receive text signal. More...
|
|
bool | Get (Block *block, int start) override |
| Returns true on success. More...
|
|
void | Damage (int dmg, int dmg_kind) override |
|
QString | FullName () const override |
|
usage_types | Use (Block *) override |
|
Inventory * | HasInventory () overridefinal |
|
| Block (int sub, int kind, int transp=UNDEF) |
|
| Block (QDataStream &, int sub, int kind, int transp=UNDEF) |
|
virtual | ~Block () |
|
Block & | operator= (Block &)=delete |
|
| Block (Block &)=delete |
|
virtual bool | Catchable () const |
|
virtual bool | Inscribe (QString str) |
| Returns true on success. More...
|
|
virtual void | Move (dirs direction) |
|
virtual usage_types | UseOnShredMove (Block *user) |
|
virtual push_reaction | PushResult (dirs) const |
|
virtual Block * | DropAfterDamage (bool *delete_self) |
| Should return dropped block. More...
|
|
virtual Animal * | IsAnimal () |
|
virtual Active * | ActiveBlock () |
|
virtual Falling * | ShouldFall () |
|
virtual wearable | Wearable () const |
|
virtual int | DamageKind () const |
|
virtual int | DamageLevel () const |
|
virtual int | LightRadius () const |
|
int | GetId () const |
| Determines kind and sub, unique for every kind-sub pair. More...
|
|
void | Restore () |
| Set maximum durability. More...
|
|
void | Break () |
| Set durability to null. More...
|
|
void | Mend (int plus) |
| Increase durability, no more than MAX_DURABILITY. More...
|
|
void | SetDir (int dir) |
|
dirs | GetDir () const |
|
int | GetDurability () const |
|
QString | GetNote () const |
|
int | Transparent () const |
|
int | Sub () const |
|
int | Kind () const |
|
bool | operator== (const Block &) const |
|
bool | operator!= (const Block &) const |
|
void | SaveToFile (QDataStream &out) |
|
void | SaveNormalToFile (QDataStream &out) const |
|
void | RestoreDurabilityAfterSave () |
| Importart! Use it if block won't be deleted after SaveToFile. More...
|
|
Inventory & | operator= (Inventory &)=delete |
|
| Inventory (Inventory &inv)=delete |
|
virtual bool | Drop (int src, int dest, int num, Inventory *to) |
| Returns true on success. More...
|
|
virtual bool | GetAll (Inventory *from) |
| Returns true on success. More...
|
|
virtual bool | Access () const |
|
virtual int | Start () const |
|
virtual bool | GetExact (Block *block, int num) |
| Returns true if block found its place. More...
|
|
virtual QString | InvFullName (int num) const |
|
void | Pull (int num) |
| Removes block from inventory. Does not delete block. More...
|
|
void | MoveInside (int num_from, int num_to, int num) |
|
bool | MiniCraft (int num) |
| Returns true on success (something has been crafted). More...
|
|
bool | InscribeInv (int num, QString str) |
| Returns true on success. More...
|
|
int | GetInvSub (int i) const |
| Returns AIR if slot number i is empty. More...
|
|
int | GetInvKind (int i) const |
| Returns BLOCK if slot number i is empty. More...
|
|
int | Size () const |
|
int | GetInvWeight (int i) const |
|
int | Number (int i) const |
|
Block * | ShowBlock (int slot) const |
|
Block * | ShowBlockInSlot (int slot, int index) const |
| Don't move block shown by this function. More...
|
|
bool | IsEmpty () const |
|
void | Push (int x, int y, int z, int push_direction) |
|
void | Shake () |
| Stacks items in inventory if possible. More...
|
|
Definition at line 26 of file Bucket.h.