|
| Dwarf (int sub, int id) |
|
| Dwarf (QDataStream &str, int sub, int id) |
|
int | ShouldAct () const override |
|
int | DamageKind () const override |
|
void | Move (dirs direction) override |
|
int | Start () const override |
|
int | Weight () const override |
|
int | DamageLevel () const override |
|
void | Damage (int dmg, int dmg_kind) override |
|
void | UpdateLightRadius () override |
|
QString | FullName () const override |
|
QString | InvFullName (int slot_number) const override |
|
bool | Access () const override |
|
bool | Inscribe (QString str) override |
| Returns true on success. More...
|
|
bool | GetExact (Block *, int to) override |
| Returns true if block found its place. More...
|
|
void | ReceiveSignal (QString) override |
|
int | LightRadius () const override |
|
int | NutritionalValue (subs) const override |
|
Block * | DropAfterDamage (bool *delete_block) override |
| Should return dropped block. More...
|
|
Inventory * | HasInventory () override |
|
| Animal (int sub, int id) |
|
| Animal (QDataStream &str, int sub, int id) |
|
| ~Animal () |
|
void | ActFrequent () override |
|
void | DoRareAction () override |
|
bool | Eat (subs) |
|
int | Breath () const |
|
int | Satiation () const |
|
Animal * | IsAnimal () override |
|
inner_actions | ActInner () override |
|
void | SetDeferredAction (DeferredAction *) |
|
| Falling (int sub, int id, int transp=UNDEF) |
|
| Falling (QDataStream &str, int sub, int id, int transp=UNDEF) |
|
Falling * | ShouldFall () overridefinal |
|
push_reaction | PushResult (dirs) const override |
|
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 |
|
Active * | ActiveBlock () overridefinal |
|
Shred * | GetShred () const |
|
World * | GetWorld () const |
|
void | ActRare () |
|
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 usage_types | Use (Block *user) |
|
virtual usage_types | UseOnShredMove (Block *user) |
|
virtual wearable | Wearable () 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 | Get (Block *block, int start=0) |
| Returns true on success. More...
|
|
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...
|
|
|
void | SaveAttributes (QDataStream &out) const override |
|
void | EatGrass () |
|
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 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 |
|
| Inventory (int sz=INV_SIZE) |
| It is not recommended to make inventory size more than 26. More...
|
|
| Inventory (QDataStream &str, int size=INV_SIZE) |
|
virtual | ~Inventory () |
|
Definition at line 28 of file Dwarf.h.