My Project
 
Loading...
Searching...
No Matches
ScrollOfTeleportation Class Reference

#include <scroll.h>

Inheritance diagram for ScrollOfTeleportation:
Collaboration diagram for ScrollOfTeleportation:

Public Member Functions

 ScrollOfTeleportation ()
 
virtual String desc ()
 
virtual int price ()
 
virtual std::string getClassName ()
 
- Public Member Functions inherited from Scroll
 Scroll ()
 
virtual void actions (Hero *hero, std::vector< std::string > &actions)
 
virtual void execute (Hero *hero, const std::string action)
 
virtual bool isKnown ()
 
void setKnown ()
 
virtual Itemidentify ()
 
virtual std::string Name ()
 
virtual String info ()
 
virtual bool isUpgradable ()
 
virtual boolean isIdentified ()
 
- Public Member Functions inherited from Item
 CLASSNAME (Item)
 
 CLASSOBJECT (Item)
 
 Item ()
 
virtual bool doPickUp (Hero *hero)
 
virtual void doDrop (Hero *hero)
 
virtual void doThrow (Hero *hero)
 
virtual std::string toString ()
 
std::string trueName ()
 
int Image ()
 
Itemdetach (Bag *container)
 
ItemdetachAll (Bag *container)
 
virtual ItemSprite::Glowingglowing ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual bool isEquipped (Hero *hero)
 
virtual int effectiveLevel ()
 
int Quantity ()
 
void Quantity (int value)
 
virtual void cast (Hero *user, int dst)
 
virtual void getBroken ()
 
bool isBroken ()
 
virtual void fix ()
 
virtual int maxDurability (int lvl)
 
int maxDurability ()
 
int visiblyUpgraded ()
 
virtual Itemrandom ()
 
virtual void Level (int value)
 
int Level ()
 
virtual boolean collect (Bag *container)
 
void use ()
 
void updateQuickslot ()
 
virtual Itemupgrade ()
 
virtual Itemdegrade ()
 
Itemdegrade (int n)
 
int considerState (int price)
 
void polish ()
 
std::string status ()
 
- Public Member Functions inherited from Object
virtual std::string getObject ()=0
 

Static Public Member Functions

static void teleportHero (Hero *hero)
 
static ItemCreate ()
 
- Static Public Member Functions inherited from Scroll
static void initLabels ()
 
static void save (Bundle *bundle)
 
static void restore (Bundle *bundle)
 
static std::set< std::string > getKnown ()
 
static std::set< std::string > getUnknown ()
 
static boolean allKnown ()
 
- Static Public Member Functions inherited from Item
static void evoke (Hero *hero)
 
static ItemVirtual (const std::string &cl)
 

Static Public Attributes

static const String TXT_TELEPORTED
 
static const String TXT_NO_TELEPORT
 
- Static Public Attributes inherited from Scroll
static const String AC_READ = "READ"
 
- Static Public Attributes inherited from Item
static HerocurUser
 
static ItemcurItem
 

Protected Member Functions

virtual void doRead ()
 
- Protected Member Functions inherited from Scroll
void readAnimation ()
 
- Protected Member Functions inherited from Item
virtual void onThrow (int cell)
 
virtual void onDetach ()
 

Additional Inherited Members

- Public Attributes inherited from Item
std::string defaultAction
 
std::string name = "smth"
 
int image = 0
 
bool stackable = false
 
bool levelKnown = false
 
bool cursed
 
bool cursedKnown
 
bool unique = false
 
int quantity
 
- Static Protected Attributes inherited from Scroll
static const float TIME_TO_READ = 1.0f
 
- Static Protected Attributes inherited from Item
static const float TIME_TO_THROW = 1.0f
 
static const float TIME_TO_PICK_UP = 1.0f
 
static const float TIME_TO_DROP = 0.5f
 
static const std::string AC_DROP = "lang.item_drop"
 
static const std::string AC_THROW = "lang.item_throw"
 
static CellSelector::Listenerthrower = new CellSelectorListenerNew()
 

Constructor & Destructor Documentation

◆ ScrollOfTeleportation()

ScrollOfTeleportation::ScrollOfTeleportation ( )
Here is the caller graph for this function:

Member Function Documentation

◆ Create()

static Item * ScrollOfTeleportation::Create ( )
inlinestatic
Here is the call graph for this function:

◆ desc()

virtual String ScrollOfTeleportation::desc ( )
inlinevirtual

Reimplemented from Item.

◆ doRead()

void ScrollOfTeleportation::doRead ( )
protectedvirtual

Implements Scroll.

◆ getClassName()

virtual std::string ScrollOfTeleportation::getClassName ( )
inlinevirtual

◆ price()

virtual int ScrollOfTeleportation::price ( )
inlinevirtual

Reimplemented from Scroll.

Here is the call graph for this function:

◆ teleportHero()

void ScrollOfTeleportation::teleportHero ( Hero * hero)
static
Here is the caller graph for this function:

Member Data Documentation

◆ TXT_NO_TELEPORT

const String ScrollOfTeleportation::TXT_NO_TELEPORT
static
Initial value:
=
"Strong magic aura of this place prevents you from teleporting!"

◆ TXT_TELEPORTED

const String ScrollOfTeleportation::TXT_TELEPORTED
static
Initial value:
=
"In a blink of an eye you were teleported to another location of the level."

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