Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
ResourceTribute Class Reference

#include <gameevents.h>

Inheritance diagram for ResourceTribute:
Inheritance graph

Public Member Functions

 ResourceTribute ()
virtual void readData (tnstream &stream)
virtual void writeData (tnstream &stream)
ASCString getTypeName () const
ASCString getDetailledName () const
void setup ()
void arm ()
void triggered ()
- Public Member Functions inherited from EventTrigger
State state (int player)
 takes the inversion into account, which getState(int) does not More...
void setMap (GameMap *gamemap_)
void setEvent (Event *ev)
EventTriggerID getTriggerID ()
virtual ~EventTrigger ()

Protected Member Functions

virtual State getState (int player)
- Protected Member Functions inherited from EventTrigger
 EventTrigger (EventTriggerID id)
bool isFulfilled ()

Additional Inherited Members

- Public Types inherited from EventTrigger
enum  State { unfulfilled, fulfilled, finally_fulfilled, finally_failed }
- Public Attributes inherited from EventTrigger
bool invert
- Protected Attributes inherited from EventTrigger

Detailed Description

Definition at line 397 of file gameevents.h.

Constructor & Destructor Documentation

ResourceTribute::ResourceTribute ( )

Definition at line 404 of file gameevents.h.

Member Function Documentation

void ResourceTribute::arm ( )

Reimplemented from EventTrigger.

Definition at line 846 of file gameevents.cpp.

References tributeTransferred, and triggered().

ASCString ResourceTribute::getDetailledName ( ) const
EventTrigger::State ResourceTribute::getState ( int  player)
ASCString ResourceTribute::getTypeName ( ) const

Implements EventTrigger.

Definition at line 823 of file gameevents.cpp.

Referenced by getDetailledName().

void ResourceTribute::readData ( tnstream stream)

Implements EventTrigger.

Definition at line 807 of file gameevents.cpp.

References Resources::read(), tnstream::readInt(), and versionTest().

void ResourceTribute::setup ( void  )

Implements EventTrigger.

Definition at line 838 of file gameevents.cpp.

References editInt(), Resources::energy, Resources::fuel, and Resources::material.

void ResourceTribute::triggered ( )

Definition at line 853 of file gameevents.cpp.

References eventReady(), EventTrigger::gamemap, and EventTrigger::isFulfilled().

Referenced by arm().

void ResourceTribute::writeData ( tnstream stream)

Implements EventTrigger.

Definition at line 815 of file gameevents.cpp.

References Resources::write(), and tnstream::writeInt().

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