freg
0.3
Free-Roaming Elementary Game
|
#include <Weapons.h>
Public Member Functions | |
int | DamageKind () const override |
QString | FullName () const override |
![]() | |
int | DamageLevel () const override |
int | Weight () const override |
wearable | Wearable () const override |
push_reaction | PushResult (dirs) const override |
![]() | |
Falling (int sub, int id, int transp=UNDEF) | |
Falling (QDataStream &str, int sub, int id, int transp=UNDEF) | |
void | Move (dirs dir) override |
Falling * | ShouldFall () overridefinal |
void | FallDamage () |
bool | IsFalling () const |
void | SetFalling (bool set) |
![]() | |
Active (int sub, int id, int transp=UNDEF) | |
Active (QDataStream &str, int sub, int id, int transp=UNDEF) | |
int | X () const |
int | Y () const |
void | ReceiveSignal (QString) override |
Receive text signal. More... | |
void | Damage (int dmg, int dmg_kind) override |
Active * | ActiveBlock () overridefinal |
Shred * | GetShred () const |
World * | GetWorld () const |
virtual void | ActFrequent () |
void | ActRare () |
virtual inner_actions | ActInner () |
virtual int | ShouldAct () const |
virtual void | UpdateLightRadius () |
void | SetShred (Shred *) |
void | Farewell () |
void | Unregister () |
![]() | |
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 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 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... | |
Additional Inherited Members | |
![]() | |
void | Moved (int) |
void | Updated () |
void | ReceivedText (const QString) |
![]() | |
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) |
![]() | |
void | SaveAttributes (QDataStream &out) const override |
![]() | |
void | SendSignalAround (QString) const |
void | DamageAround () const |
void | TryDestroy (int x, int y, int z) const |
Damages block and destroys it if it is broken. More... | |
bool | IsSubAround (int sub) const |
Returns true if there is at least 1 block of substance sub around. More... | |
bool | Gravitate (int range, int down, int up, int calmness) |
virtual void | DoRareAction () |
virtual int | Attractive (int sub) const |
![]() | |
Xyz (short x, short y, short z) | |
Xyz () | |
short | Z () const |
void | SetXyz (short x, short y, short z) |
![]() | |
Xy (short x, short y) | |
Xy () | |
short | X () const |
short | Y () const |
![]() | |
quint16 | noteId |
To convert DAMAGE_PUSH_UP...WEST to corresponding direction. More... | |
![]() | |
short | z_self |
![]() | |
short | x_self |
short | y_self |
|
overridevirtual |
Reimplemented from Weapon.
Definition at line 83 of file Weapons.cpp.
|
overridevirtual |
Reimplemented from Weapon.
Definition at line 85 of file Weapons.cpp.