____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

CUserInterface Class Reference

#include <ui.h>

List of all members.

Public Member Functions

 CUserInterface ()
 ~CUserInterface ()
void Load ()

Public Attributes

bool MouseScroll
 Enable mouse scrolling.
bool KeyScroll
 Middle-Mouse Scroll Speed (screenpixels per mousepixel).
int MouseScrollSpeedDefault
 Middle-Mouse Scroll Speed with Control pressed.
int MouseScrollSpeedControl
int MouseWarpX
 Cursor warp X position.
int MouseWarpY
 Cursor warp Y position.
std::string NormalFontColor
 Color for normal text displayed.
std::string ReverseFontColor
 Color for reverse text displayed.
std::vector< CFillerFillers
 Filler graphics.
CResourceInfo Resources [MaxCosts]
 Icon+Text of all resources.
CInfoPanel InfoPanel
 Info panel.
CUIButtonSingleSelectedButton
 Button for single selected unit.
std::vector< CUIButtonSelectedButtons
 Selected buttons.
CFontMaxSelectedFont
 Font type to use.
int MaxSelectedTextX
 position to place '+#' text
int MaxSelectedTextY
 if > maximum units selected
CUIButtonSingleTrainingButton
 Button for single training.
std::string SingleTrainingText
 Text for single training.
CFontSingleTrainingFont
 Font for single traning.
int SingleTrainingTextX
 X text position single training.
int SingleTrainingTextY
 Y text position single training.
std::vector< CUIButtonTrainingButtons
 Training buttons.
std::string TrainingText
 Multiple Training Text.
CFontTrainingFont
 Multiple Training Font.
int TrainingTextX
 Multiple Training X Text position.
int TrainingTextY
 Multiple Training Y Text position.
std::vector< CUIButtonTransportingButtons
 Button info for transporting.
SDL_Color CompletedBarColorRGB
 color for completed bar
Uint32 CompletedBarColor
 color for completed bar
bool CompletedBarShadow
 should complete bar have shadow
CButtonPanel ButtonPanel
CPieMenu PieMenu
ViewportModeType ViewportMode
 Current viewport mode.
CViewportMouseViewport
 Viewport containing mouse.
CViewportSelectedViewport
 Current selected active viewport.
int NumViewports
 # Viewports currently used
CViewport Viewports [MAX_NUM_VIEWPORTS]
 Parameters of all viewports.
CMapArea MapArea
 geometry of the whole map area
CFontMessageFont
 Font used for messages.
int MessageScrollSpeed
 Scroll speed in seconds for messages.
CUIButton MenuButton
 menu button
CUIButton NetworkMenuButton
 network menu button
CUIButton NetworkDiplomacyButton
 network diplomacy button
CMinimap Minimap
 minimap
Uint32 ViewportCursorColor
 minimap cursor color
CStatusLine StatusLine
 status line
CUITimer Timer
 game timer
int Offset640X
 Offset for 640x480 X position.
int Offset480Y
 Offset for 640x480 Y position.
CursorConfig Point
 General pointing cursor.
CursorConfig Glass
 HourGlass, system is waiting.
CursorConfig Cross
 Multi-select cursor.
CursorConfig YellowHair
 Yellow action,attack cursor.
CursorConfig GreenHair
 Green action,attack cursor.
CursorConfig RedHair
 Red action,attack cursor.
CursorConfig Scroll
 Cursor for scrolling map around.
CursorConfig ArrowE
 Cursor pointing east.
CursorConfig ArrowNE
 Cursor pointing north east.
CursorConfig ArrowN
 Cursor pointing north.
CursorConfig ArrowNW
 Cursor pointing north west.
CursorConfig ArrowW
 Cursor pointing west.
CursorConfig ArrowSW
 Cursor pointing south west.
CursorConfig ArrowS
 Cursor pointing south.
CursorConfig ArrowSE
 Cursor pointing south east.
CGraphicVictoryBackgroundG
 Victory background graphic.
CGraphicDefeatBackgroundG
 Defeat background graphic.


Detailed Description

Defines the user interface.

Definition at line 342 of file ui.h.


Constructor & Destructor Documentation

CUserInterface::CUserInterface (  ) 

CUserInterface::~CUserInterface (  ) 

Clean up a user interface.

Definition at line 233 of file ui.cpp.


Member Function Documentation

void CUserInterface::Load ( void   ) 


Member Data Documentation

Enable mouse scrolling.

Definition at line 351 of file ui.h.

Referenced by EditorMainLoop(), GetMouseScroll(), and SetMouseScroll().

Middle-Mouse Scroll Speed (screenpixels per mousepixel).

Enable keyboard scrolling

Definition at line 352 of file ui.h.

Referenced by EditorMainLoop(), GetKeyScroll(), and SetKeyScroll().

Middle-Mouse Scroll Speed with Control pressed.

Definition at line 355 of file ui.h.

Referenced by CclSetMouseScrollSpeedDefault(), and MouseScrollMap().

Definition at line 356 of file ui.h.

Referenced by CclSetMouseScrollSpeedControl(), and MouseScrollMap().

Cursor warp X position.

Definition at line 358 of file ui.h.

Referenced by InitVideoSdl(), MouseScrollMap(), RestrictCursorToMinimap(), RestrictCursorToViewport(), SdlDoEvent(), and UIHandleMouseMove().

Cursor warp Y position.

Definition at line 359 of file ui.h.

Referenced by InitVideoSdl(), MouseScrollMap(), RestrictCursorToMinimap(), RestrictCursorToViewport(), SdlDoEvent(), and UIHandleMouseMove().

Color for normal text displayed.

Definition at line 361 of file ui.h.

Referenced by CreateGame(), CUserInterface(), and LoadModules().

Color for reverse text displayed.

Definition at line 362 of file ui.h.

Referenced by CreateGame(), CUserInterface(), and LoadModules().

Filler graphics.

Definition at line 364 of file ui.h.

Referenced by CleanUserInterface(), EditorUpdateDisplay(), HandleMouseOn(), Load(), and UpdateDisplay().

Icon+Text of all resources.

Definition at line 366 of file ui.h.

Referenced by CleanUserInterface(), DrawCosts(), DrawPopup(), and Load().

Button for single selected unit.

Definition at line 370 of file ui.h.

Referenced by CleanUserInterface(), DrawEditorPanel(), DrawUnitInfo(), and HandleMouseOn().

Selected buttons.

Definition at line 372 of file ui.h.

Referenced by CleanUserInterface(), DrawInfoPanelMultipleSelected(), and HandleMouseOn().

Font type to use.

Definition at line 373 of file ui.h.

Referenced by DrawInfoPanelMultipleSelected().

position to place '+#' text

Definition at line 374 of file ui.h.

Referenced by DrawInfoPanelMultipleSelected().

if > maximum units selected

Definition at line 375 of file ui.h.

Referenced by DrawInfoPanelMultipleSelected().

Button for single training.

Definition at line 377 of file ui.h.

Referenced by CleanUserInterface(), DrawTrainingUnits(), and HandleMouseOn().

Text for single training.

Definition at line 378 of file ui.h.

Referenced by CleanUserInterface(), and DrawTrainingUnits().

Font for single traning.

Definition at line 379 of file ui.h.

Referenced by DrawTrainingUnits().

X text position single training.

Definition at line 380 of file ui.h.

Referenced by DrawTrainingUnits().

Y text position single training.

Definition at line 381 of file ui.h.

Referenced by DrawTrainingUnits().

Training buttons.

Definition at line 383 of file ui.h.

Referenced by CleanUserInterface(), DrawTrainingUnits(), and HandleMouseOn().

Multiple Training Text.

Definition at line 384 of file ui.h.

Referenced by CleanUserInterface(), and DrawTrainingUnits().

Multiple Training Font.

Definition at line 385 of file ui.h.

Referenced by DrawTrainingUnits().

Multiple Training X Text position.

Definition at line 386 of file ui.h.

Referenced by DrawTrainingUnits().

Multiple Training Y Text position.

Definition at line 387 of file ui.h.

Referenced by DrawTrainingUnits().

Button info for transporting.

Definition at line 389 of file ui.h.

Referenced by CleanUserInterface(), DrawTransportingUnits(), and HandleMouseOn().

color for completed bar

Definition at line 392 of file ui.h.

Referenced by CUserInterface(), and InitUserInterface().

color for completed bar

Definition at line 393 of file ui.h.

Referenced by InitUserInterface().

should complete bar have shadow

Definition at line 394 of file ui.h.

Current viewport mode.

Definition at line 403 of file ui.h.

Referenced by CclDefineViewports(), CycleViewportMode(), SaveViewports(), SetViewportMode(), and UiToggleBigMap().

Font used for messages.

Definition at line 409 of file ui.h.

Referenced by MessagesDisplay::AddMessage(), MessagesDisplay::DrawMessages(), and MessagesDisplay::UpdateMessages().

Scroll speed in seconds for messages.

Definition at line 410 of file ui.h.

Referenced by MessagesDisplay::AddMessage(), and MessagesDisplay::UpdateMessages().

network menu button

Definition at line 414 of file ui.h.

Referenced by DrawMenuButtonArea(), HandleMouseOn(), and UIHandleButtonUp().

network diplomacy button

Definition at line 415 of file ui.h.

Referenced by DrawMenuButtonArea(), HandleMouseOn(), and UIHandleButtonUp().

minimap cursor color

Definition at line 419 of file ui.h.

Referenced by CMinimap::DrawCursor(), and InitUserInterface().

game timer

Definition at line 425 of file ui.h.

Referenced by DrawTimer().

Offset for 640x480 X position.

Definition at line 428 of file ui.h.

Referenced by InitUserInterface().

Offset for 640x480 Y position.

Definition at line 429 of file ui.h.

Referenced by InitUserInterface().

HourGlass, system is waiting.

Definition at line 435 of file ui.h.

Referenced by CUserInterface(), Load(), and UIHandleMouseMove().

Multi-select cursor.

Definition at line 436 of file ui.h.

Referenced by CUserInterface(), Load(), and UIHandleButtonDown().

Yellow action,attack cursor.

Definition at line 437 of file ui.h.

Referenced by CUserInterface(), CButtonPanel::DoClicked(), Load(), and UIHandleMouseMove().

Green action,attack cursor.

Definition at line 438 of file ui.h.

Referenced by CUserInterface(), Load(), and UIHandleMouseMove().

Red action,attack cursor.

Definition at line 439 of file ui.h.

Referenced by CUserInterface(), Load(), and UIHandleMouseMove().

Cursor pointing east.

Definition at line 442 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing north east.

Definition at line 443 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing north.

Definition at line 444 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing north west.

Definition at line 445 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing west.

Definition at line 446 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing south west.

Definition at line 447 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing south.

Definition at line 448 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Cursor pointing south east.

Definition at line 449 of file ui.h.

Referenced by CUserInterface(), HandleMouseScrollArea(), and Load().

Victory background graphic.

Todo:
could use different sounds/speech for the errors Is in gamesounds? SoundConfig PlacementError; //!< played on placements errors SoundConfig PlacementSuccess; //!< played on placements success SoundConfig Click; //!< click noice used often

Definition at line 457 of file ui.h.

Referenced by CleanUserInterface().

Defeat background graphic.

Definition at line 458 of file ui.h.

Referenced by CleanUserInterface().


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

Generated on Sat Feb 21 00:28:24 2009 for Bos Wars by  doxygen 1.5.6