• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

Public Types | Static Public Member Functions | List of all members
KStdGameAction Class Reference

#include <kstdgameaction.h>

Public Types

enum  StdGameAction {
  New =1 , Load , LoadRecent , Save ,
  SaveAs , End , Pause , Highscores ,
  Print , Quit , Repeat , Undo ,
  Redo , Roll , EndTurn , Carddecks ,
  ChooseGameType , ConfigureHighscores , Restart , Hint ,
  Demo , Solve , ActionNone
}
 

Static Public Member Functions

static TDEAction * create (StdGameAction id, const char *name, const TQObject *recvr, const char *slot, TDEActionCollection *parent)
 
static TDEAction * create (StdGameAction id, const TQObject *recvr, const char *slot, TDEActionCollection *parent)
 
static TDEAction * action (StdGameAction act_enum, const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static const char * name (StdGameAction id)
 
static const char * stdName (StdGameAction act_enum)
 
static TDEAction * gameNew (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * load (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDERecentFilesAction * loadRecent (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * save (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * saveAs (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEToggleAction * pause (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * highscores (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * end (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * print (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * quit (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * repeat (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * undo (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * redo (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * roll (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * endTurn (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * carddecks (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * configureHighscores (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * hint (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEToggleAction * demo (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * solve (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDESelectAction * chooseGameType (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 
static TDEAction * restart (const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
 

Detailed Description

Replacement for KStdAction for TDE Games.

This class is an extension to the usual KStdAction class which provides easy access to often used KDE actions

Games often use different menu entries than other programs, e.g. games use the menu "game" instead of "file". This class provides the entries which differ from the usual KStdAction entries.

See also
KStdAction
Author
Andreas Beckermann b_man.nosp@m.n@gm.nosp@m.x.de

Definition at line 48 of file kstdgameaction.h.

Member Enumeration Documentation

◆ StdGameAction

enum KStdGameAction::StdGameAction

The standard menubar and toolbar actions.

Definition at line 54 of file kstdgameaction.h.

Constructor & Destructor Documentation

◆ KStdGameAction()

KStdGameAction::KStdGameAction ( )

Definition at line 29 of file kstdgameaction.cpp.

◆ ~KStdGameAction()

KStdGameAction::~KStdGameAction ( )

Definition at line 32 of file kstdgameaction.cpp.

Member Function Documentation

◆ action()

TDEAction * KStdGameAction::action ( StdGameAction  act_enum,
const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Retrieve the action corresponding to the KStdGameAction::StdGameAction enum.

Deprecated:

Definition at line 35 of file kstdgameaction.cpp.

◆ carddecks()

TDEAction * KStdGameAction::carddecks ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Display configure carddecks dialog.

Definition at line 189 of file kstdgameaction.cpp.

◆ chooseGameType()

TDESelectAction * KStdGameAction::chooseGameType ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Choose game type.

Since
3.2

Definition at line 204 of file kstdgameaction.cpp.

◆ configureHighscores()

TDEAction * KStdGameAction::configureHighscores ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Display configure highscores dialog.

Since
3.2

Definition at line 192 of file kstdgameaction.cpp.

◆ create() [1/2]

TDEAction * KStdGameAction::create ( StdGameAction  id,
const char *  name,
const TQObject *  recvr,
const char *  slot,
TDEActionCollection *  parent 
)
static

Creates an action corresponding to the KStdAction::StdAction enum.

Since
3.2

Definition at line 98 of file kstdgameaction.cpp.

◆ create() [2/2]

static TDEAction * KStdGameAction::create ( StdGameAction  id,
const TQObject *  recvr,
const char *  slot,
TDEActionCollection *  parent 
)
inlinestatic
Since
3.2

Definition at line 87 of file kstdgameaction.h.

◆ demo()

TDEToggleAction * KStdGameAction::demo ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Show a demo.

Since
3.2

Definition at line 198 of file kstdgameaction.cpp.

◆ end()

TDEAction * KStdGameAction::end ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

End the current game, but do not quit the program.

Think of a "close" entry.

Definition at line 155 of file kstdgameaction.cpp.

◆ endTurn()

TDEAction * KStdGameAction::endTurn ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

End the current turn (not the game).

Usually to let the next player start

Definition at line 185 of file kstdgameaction.cpp.

◆ gameNew()

TDEAction * KStdGameAction::gameNew ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Start a new game.

Definition at line 140 of file kstdgameaction.cpp.

◆ highscores()

TDEAction * KStdGameAction::highscores ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Show the highscores.

Definition at line 161 of file kstdgameaction.cpp.

◆ hint()

TDEAction * KStdGameAction::hint ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Give an advice/hint.

Since
3.2

Definition at line 195 of file kstdgameaction.cpp.

◆ load()

TDEAction * KStdGameAction::load ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Load a previousely saved game.

Definition at line 143 of file kstdgameaction.cpp.

◆ loadRecent()

TDERecentFilesAction * KStdGameAction::loadRecent ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Load a recently loaded game.

Definition at line 146 of file kstdgameaction.cpp.

◆ name()

const char * KStdGameAction::name ( StdGameAction  id)
static

This will return the internal name of a given standard action.

Since
3.2

Definition at line 134 of file kstdgameaction.cpp.

◆ pause()

TDEToggleAction * KStdGameAction::pause ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Pause the game.

Definition at line 158 of file kstdgameaction.cpp.

◆ print()

TDEAction * KStdGameAction::print ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Print the current screen? Game? Whatever - hardly used in games but there is at least one example (ktuberling)

Definition at line 164 of file kstdgameaction.cpp.

◆ quit()

TDEAction * KStdGameAction::quit ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Quit the game.

Definition at line 167 of file kstdgameaction.cpp.

◆ redo()

TDEAction * KStdGameAction::redo ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Redo the last move (which has been undone)

Definition at line 178 of file kstdgameaction.cpp.

◆ repeat()

TDEAction * KStdGameAction::repeat ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Repeat the last move.

Definition at line 171 of file kstdgameaction.cpp.

◆ restart()

TDEAction * KStdGameAction::restart ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Restart game.

Since
3.2

Definition at line 207 of file kstdgameaction.cpp.

◆ roll()

TDEAction * KStdGameAction::roll ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Roll die or dice.

Definition at line 182 of file kstdgameaction.cpp.

◆ save()

TDEAction * KStdGameAction::save ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Save the current game.

Definition at line 149 of file kstdgameaction.cpp.

◆ saveAs()

TDEAction * KStdGameAction::saveAs ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Save the current game under a different filename.

Definition at line 152 of file kstdgameaction.cpp.

◆ solve()

TDEAction * KStdGameAction::solve ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Solve the game.

Since
3.2

Definition at line 201 of file kstdgameaction.cpp.

◆ stdName()

const char * KStdGameAction::stdName ( StdGameAction  act_enum)
static

This will return the internal name of a given standard action.

Deprecated:

Definition at line 42 of file kstdgameaction.cpp.

◆ undo()

TDEAction * KStdGameAction::undo ( const TQObject *  recvr = 0,
const char *  slot = 0,
TDEActionCollection *  parent = 0,
const char *  name = 0L 
)
static

Undo the last move.

Definition at line 174 of file kstdgameaction.cpp.


The documentation for this class was generated from the following files:
  • kstdgameaction.h
  • kstdgameaction.cpp

libtdegames

Skip menu "libtdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.9.4
This website is maintained by Timothy Pearson.