CControls.cpp File Reference

The control settings screen. More...

#include "STDAFX.H"
#include "CControls.h"
#include "CGame.h"
#include "COptions.h"
#include "CDisplay.h"
#include "CInput.h"
#include "CMosaic.h"
#include "CRandomMosaic.h"

Include dependency graph for CControls.cpp:


Defines

#define CONTROLS_BLACKSCREEN_DURATION   0.750f
 Duration (in seconds) of the two black screens.
#define CONTROLS_DISPLAY_ORIGIN_X   0
 Display origin of the screen.
#define CONTROLS_DISPLAY_ORIGIN_Y   0
#define CONTROLS_TEXT_SPRITE_LAYER   1
 Sprite layer where to draw strings.
#define CONTROLS_CURSOR_HAND_SPRITE_LAYER   1
 Sprite layer where to draw the cursor hand.
#define SPRITE_TABLE_CURSOR_HAND   32
 Sprite table of the cursor hand.
#define SPRITE_CURSOR_HAND   0
#define TIME_TO_WAIT_BEFORE_READING_INPUT   0.200f
#define NUMBER_OF_MENU_ITEMS   7
#define FIRST_MENU_ITEM   0
#define LAST_MENU_ITEM   (NUMBER_OF_MENU_ITEMS - 1)
#define DEVICE_MENU_ITEM   FIRST_MENU_ITEM
#define UP_MENU_ITEM   1
#define DOWN_MENU_ITEM   2
#define LEFT_MENU_ITEM   3
#define RIGHT_MENU_ITEM   4
#define ACTION1_MENU_ITEM   5
#define ACTION2_MENU_ITEM   6
#define DEVICE_MENU_ITEM_STRING   "DEVICE"
#define UP_MENU_ITEM_STRING   "UP"
#define DOWN_MENU_ITEM_STRING   "DOWN"
#define LEFT_MENU_ITEM_STRING   "LEFT"
#define RIGHT_MENU_ITEM_STRING   "RIGHT"
#define ACTION1_MENU_ITEM_STRING   "ACTION1"
#define ACTION2_MENU_ITEM_STRING   "ACTION2"
#define FIRST_PLAYER_INPUT   0
#define SCREEN_TITLE_POSITION_Y   (20+80)
#define FIRST_MENU_ITEM_POSITION_Y   (60+95)
#define ALL_MENU_ITEMS_POSITION_X   (33+110)
#define SPACE_Y_BETWEEN_MENU_ITEMS   21
#define SPACE_X_FROM_MENU_ITEM_TO_VALUE   90
#define SPACE_X_FROM_MENU_ITEM_TO_CURSOR_HAND   -25
#define SPACE_Y_FROM_MENU_ITEM_TO_CURSOR_HAND   -2
#define MAX_MENU_ITEM_NAME_LENGTH   50
#define MAX_MENU_ITEM_VALUE_NAME_LENGTH   50
#define SCREEN_TITLE_STRING   "CONTROLS"
#define MOSAIC_SPRITE_LAYER   0
 Sprite layer where to draw the mosaic tiles.
#define MOSAIC_SPRITE_PRIORITY_IN_LAYER   0
 Priority to use in the sprite layer where to draw the mosaic tiles.
#define MOSAIC_SPEED_X   20.0f
 Speed of the mosaic background horizontally.
#define MOSAIC_SPEED_Y   -20.0f
 Speed of the mosaic background vertically.

Detailed Description

The control settings screen.


Define Documentation

#define ACTION1_MENU_ITEM   5

#define ACTION1_MENU_ITEM_STRING   "ACTION1"

#define ACTION2_MENU_ITEM   6

#define ACTION2_MENU_ITEM_STRING   "ACTION2"

#define ALL_MENU_ITEMS_POSITION_X   (33+110)

#define CONTROLS_BLACKSCREEN_DURATION   0.750f

Duration (in seconds) of the two black screens.

#define CONTROLS_CURSOR_HAND_SPRITE_LAYER   1

Sprite layer where to draw the cursor hand.

#define CONTROLS_DISPLAY_ORIGIN_X   0

Display origin of the screen.

#define CONTROLS_DISPLAY_ORIGIN_Y   0

#define CONTROLS_TEXT_SPRITE_LAYER   1

Sprite layer where to draw strings.

#define DEVICE_MENU_ITEM   FIRST_MENU_ITEM

#define DEVICE_MENU_ITEM_STRING   "DEVICE"

#define DOWN_MENU_ITEM   2

#define DOWN_MENU_ITEM_STRING   "DOWN"

#define FIRST_MENU_ITEM   0

#define FIRST_MENU_ITEM_POSITION_Y   (60+95)

#define FIRST_PLAYER_INPUT   0

#define LAST_MENU_ITEM   (NUMBER_OF_MENU_ITEMS - 1)

#define LEFT_MENU_ITEM   3

#define LEFT_MENU_ITEM_STRING   "LEFT"

#define MAX_MENU_ITEM_NAME_LENGTH   50

#define MAX_MENU_ITEM_VALUE_NAME_LENGTH   50

#define MOSAIC_SPEED_X   20.0f

Speed of the mosaic background horizontally.

#define MOSAIC_SPEED_Y   -20.0f

Speed of the mosaic background vertically.

#define MOSAIC_SPRITE_LAYER   0

Sprite layer where to draw the mosaic tiles.

#define MOSAIC_SPRITE_PRIORITY_IN_LAYER   0

Priority to use in the sprite layer where to draw the mosaic tiles.

#define NUMBER_OF_MENU_ITEMS   7

#define RIGHT_MENU_ITEM   4

#define RIGHT_MENU_ITEM_STRING   "RIGHT"

#define SCREEN_TITLE_POSITION_Y   (20+80)

#define SCREEN_TITLE_STRING   "CONTROLS"

#define SPACE_X_FROM_MENU_ITEM_TO_CURSOR_HAND   -25

#define SPACE_X_FROM_MENU_ITEM_TO_VALUE   90

#define SPACE_Y_BETWEEN_MENU_ITEMS   21

#define SPACE_Y_FROM_MENU_ITEM_TO_CURSOR_HAND   -2

#define SPRITE_CURSOR_HAND   0

#define SPRITE_TABLE_CURSOR_HAND   32

Sprite table of the cursor hand.

#define TIME_TO_WAIT_BEFORE_READING_INPUT   0.200f

#define UP_MENU_ITEM   1

#define UP_MENU_ITEM_STRING   "UP"


Generated on Sat Oct 18 12:26:38 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo