freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
MedKit Class Reference

#include <blocks.h>

Inheritance diagram for MedKit:
Inheritance graph
[legend]
Collaboration diagram for MedKit:
Collaboration graph
[legend]

Public Member Functions

QString FullName () const override
 
wearable Wearable () const override
 
usage_types Use (Block *user) 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 ()
 
Blockoperator= (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 UseOnShredMove (Block *user)
 
virtual push_reaction PushResult (dirs) const
 
virtual BlockDropAfterDamage (bool *delete_self)
 Should return dropped block. More...
 
virtual InventoryHasInventory ()
 
virtual AnimalIsAnimal ()
 
virtual ActiveActiveBlock ()
 
virtual FallingShouldFall ()
 
virtual int DamageKind () const
 
virtual int DamageLevel () const
 
virtual int LightRadius () const
 
virtual int Weight () 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...
 

Detailed Description

Definition at line 232 of file blocks.h.

Member Function Documentation

QString MedKit::FullName ( ) const
overridevirtual

Reimplemented from Block.

Definition at line 622 of file blocks.cpp.

usage_types MedKit::Use ( Block user)
overridevirtual

Reimplemented from Block.

Definition at line 625 of file blocks.cpp.

wearable MedKit::Wearable ( ) const
overridevirtual

Reimplemented from Block.

Definition at line 623 of file blocks.cpp.


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