Advanced Strategic Command
Public Member Functions | List of all members
PG_MapDisplay Class Reference
Inheritance diagram for PG_MapDisplay:
Inheritance graph
[legend]

Public Member Functions

 PG_MapDisplay (MapDisplayPG *mapDisplayWidget_)
 
int displayMovingUnit (const MapCoordinate3D &start, const MapCoordinate3D &dest, Vehicle *vehicle, int fieldnum, int totalmove, SoundStartCallback soundStart, int duration)
 
void deleteVehicle (Vehicle *vehicle)
 
void displayMap (void)
 
void displayMap (Vehicle *vehicle)
 
void displayPosition (int x, int y)
 
void resetMovement (void)
 
void startAction (void)
 
void stopAction (void)
 
void cursor_goto (const MapCoordinate &pos)
 
void displayActionCursor (int x1, int y1, int x2, int y2)
 
void removeActionCursor (void)
 
void updateDashboard ()
 
void repaintDisplay ()
 
void setTempView (bool view)
 
void showBattle (tfight &battle)
 
void playPositionalSound (const MapCoordinate &pos, Sound *snd)
 
int getUnitMovementDuration () const
 
- Public Member Functions inherited from MapDisplayInterface
void displayPosition (const MapCoordinate &pos)
 
virtual void displayActionCursor (const MapCoordinate &pos1, const MapCoordinate &pos2)
 
virtual ~MapDisplayInterface ()
 

Additional Inherited Members

- Public Types inherited from MapDisplayInterface
typedef Loki::Functor< void,
LOKI_TYPELIST_1(int) > 
SoundStartCallback
 

Detailed Description

Definition at line 53 of file pg_mapdisplay.cpp.

Constructor & Destructor Documentation

PG_MapDisplay::PG_MapDisplay ( MapDisplayPG mapDisplayWidget_)
inline

Definition at line 56 of file pg_mapdisplay.cpp.

Member Function Documentation

void PG_MapDisplay::cursor_goto ( const MapCoordinate pos)
virtual

Implements MapDisplayInterface.

Definition at line 145 of file pg_mapdisplay.cpp.

References MapDisplayPG::cursor, and MapDisplayPG::Cursor::goTo().

void PG_MapDisplay::deleteVehicle ( Vehicle vehicle)
inline

Definition at line 59 of file pg_mapdisplay.cpp.

void PG_MapDisplay::displayActionCursor ( int  x1,
int  y1,
int  x2,
int  y2 
)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 67 of file pg_mapdisplay.cpp.

void PG_MapDisplay::displayMap ( void  )
virtual

Implements MapDisplayInterface.

Definition at line 140 of file pg_mapdisplay.cpp.

References repaintMap.

void PG_MapDisplay::displayMap ( Vehicle vehicle)
virtual

Implements MapDisplayInterface.

Definition at line 151 of file pg_mapdisplay.cpp.

References MapDisplayPG::registerAdditionalUnit(), and repaintMap.

int PG_MapDisplay::displayMovingUnit ( const MapCoordinate3D start,
const MapCoordinate3D dest,
Vehicle vehicle,
int  fieldnum,
int  totalmove,
SoundStartCallback  soundStart,
int  duration 
)
virtual
void PG_MapDisplay::displayPosition ( int  x,
int  y 
)
virtual
int PG_MapDisplay::getUnitMovementDuration ( ) const
inlinevirtual

Implements MapDisplayInterface.

Definition at line 76 of file pg_mapdisplay.cpp.

References CGameOptions::Instance(), and CGameOptions::movespeed.

void PG_MapDisplay::playPositionalSound ( const MapCoordinate pos,
Sound snd 
)
virtual

Implements MapDisplayInterface.

Definition at line 186 of file pg_mapdisplay.cpp.

References Sound::play().

void PG_MapDisplay::removeActionCursor ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 68 of file pg_mapdisplay.cpp.

References MapDisplayPG::cursor, and MapDisplayPG::Cursor::invisible.

void PG_MapDisplay::repaintDisplay ( )
virtual

Implements MapDisplayInterface.

Definition at line 181 of file pg_mapdisplay.cpp.

void PG_MapDisplay::resetMovement ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 63 of file pg_mapdisplay.cpp.

void PG_MapDisplay::setTempView ( bool  view)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 73 of file pg_mapdisplay.cpp.

References tempsvisible.

void PG_MapDisplay::showBattle ( tfight battle)
virtual

Implements MapDisplayInterface.

Definition at line 134 of file pg_mapdisplay.cpp.

References actmap, and showAttackAnimation().

void PG_MapDisplay::startAction ( void  )
virtual

Implements MapDisplayInterface.

Definition at line 168 of file pg_mapdisplay.cpp.

void PG_MapDisplay::stopAction ( void  )
virtual

Implements MapDisplayInterface.

Definition at line 172 of file pg_mapdisplay.cpp.

void PG_MapDisplay::updateDashboard ( void  )
virtual

Implements MapDisplayInterface.

Definition at line 176 of file pg_mapdisplay.cpp.

References updateFieldInfo.


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