|
freg
0.3
Free-Roaming Elementary Game
|
#include <blocks.h>


Public Member Functions | |
| int | Weight () const override |
| QString | FullName () const override |
| push_reaction | PushResult (dirs) const override |
Public Member Functions inherited from Block | |
| 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 void | Damage (int dmg, int dmg_kind) |
| virtual usage_types | Use (Block *user) |
| virtual usage_types | UseOnShredMove (Block *user) |
| virtual Block * | DropAfterDamage (bool *delete_self) |
| Should return dropped block. More... | |
| virtual Inventory * | HasInventory () |
| 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 |
| virtual void | ReceiveSignal (QString) |
| Receive text signal. More... | |
| 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Block | |
| static QString | SubName (int sub) |
| Returns translated substance name. More... | |
| static QString | SubNameUpper (int sub) |
| Returns translated substance name with first upper letter. More... | |
| static sub_groups | GetSubGroup (int sub) |
| static dirs | MakeDirFromDamage (int damage_kind) |
| static QString | DirString (dirs) |
Protected Member Functions inherited from Block | |
| virtual void | SaveAttributes (QDataStream &) const |
Protected Attributes inherited from Block | |
| quint16 | noteId |
| To convert DAMAGE_PUSH_UP...WEST to corresponding direction. More... | |
|
overridevirtual |
Reimplemented from Block.
Definition at line 29 of file blocks.cpp.
|
overridevirtual |
Reimplemented from Block.
Definition at line 39 of file blocks.cpp.
|
overridevirtual |
Reimplemented from Block.
Definition at line 38 of file blocks.cpp.
1.8.7