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

#include <heap.h>

Inheritance diagram for Heap:
Collaboration diagram for Heap:

Public Types

enum  Type {
  HEAP , FOR_SALE , CHEST , LOCKED_CHEST ,
  CRYSTAL_CHEST , TOMB , SKELETON , MIMIC ,
  HIDDEN
}
 

Public Member Functions

 Heap ()
 
ItemSprite::Glowingglowing ()
 
int image ()
 
int size ()
 
bool isEmpty ()
 
Itempeek ()
 
void open (Hero *hero)
 
void destroy ()
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual void storeInBundle (Bundle *bundle)
 
virtual std::string getClassName ()
 
 CLASSOBJECT (Heap)
 
ItempickUp ()
 
void drop (Item *item)
 
void replace (Item *a, Item *b)
 
void burn ()
 
void freeze ()
 
Itemtransmute ()
 
- Public Member Functions inherited from Object
virtual std::string getObject ()=0
 

Static Public Member Functions

static void burnFX (int pos)
 
static void evaporateFX (int pos)
 

Public Attributes

Type type
 
int pos
 
std::vector< Item * > items
 
ItemSpritesprite
 

Member Enumeration Documentation

◆ Type

enum Heap::Type
Enumerator
HEAP 
FOR_SALE 
CHEST 
LOCKED_CHEST 
CRYSTAL_CHEST 
TOMB 
SKELETON 
MIMIC 
HIDDEN 

Constructor & Destructor Documentation

◆ Heap()

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

Member Function Documentation

◆ burn()

void Heap::burn ( )
Here is the call graph for this function:

◆ burnFX()

void Heap::burnFX ( int pos)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CLASSOBJECT()

Heap::CLASSOBJECT ( Heap )
Here is the call graph for this function:

◆ destroy()

void Heap::destroy ( )
Here is the caller graph for this function:

◆ drop()

void Heap::drop ( Item * item)
Here is the call graph for this function:

◆ evaporateFX()

void Heap::evaporateFX ( int pos)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeze()

void Heap::freeze ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClassName()

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

◆ glowing()

ItemSprite::Glowing * Heap::glowing ( )
Here is the caller graph for this function:

◆ image()

int Heap::image ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEmpty()

bool Heap::isEmpty ( )
inline
Here is the caller graph for this function:

◆ open()

void Heap::open ( Hero * hero)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ peek()

Item * Heap::peek ( )
inline
Here is the caller graph for this function:

◆ pickUp()

Item * Heap::pickUp ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace()

void Heap::replace ( Item * a,
Item * b )
Here is the caller graph for this function:

◆ restoreFromBundle()

void Heap::restoreFromBundle ( Bundle * bundle)
virtual

◆ size()

int Heap::size ( )
inline
Here is the caller graph for this function:

◆ storeInBundle()

void Heap::storeInBundle ( Bundle * bundle)
virtual

◆ transmute()

Item * Heap::transmute ( )
Here is the call graph for this function:

Member Data Documentation

◆ items

std::vector<Item* > Heap::items

◆ pos

int Heap::pos

◆ sprite

ItemSprite* Heap::sprite

◆ type

Type Heap::type

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