D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
Deeangband::GameSurfaceSDL クラス

ゲームのメインインターフェイスクラス(SDL実装) [詳解]

#include <GameSurfaceSDL.h>

Deeangband::GameSurfaceSDL の継承関係図
Deeangband::GameSurfaceSDL 連携図

公開メンバ関数

void GameSurfaceSDL::Redraw (void)
 ゲーム画面を再描画する [詳解]
 
void GameSurfaceSDL::ViewCreatureStatus (Creature *creaturePtr)
 指定されたクリーチャーのステータスを表示する [詳解]
 
void GameSurfaceSDL::SetSideStatusCreature (Creature *creaturePtr)
 ゲーム画面左にプレイヤー簡略情報を表示する。 [詳解]
 
void GameSurfaceSDL::SetField (Field *fieldPtr)
 表示するフロアを切り替える [詳解]
 
 GameSurfaceSDL::GameSurfaceSDL (GameWorld *gameWorld)
 コンストラクタ [詳解]
 
 GameSurfaceSDL::‾GameSurfaceSDL (void)
 デストラクタ [詳解]
 
GAME_COMMAND GameSurfaceSDL::GetCommand (void)
 プレイヤーからコマンドを取得する [詳解]
 
void GameSurfaceSDL::FocusField (int x, int y)
 フロア表示のフォーカスを変更する [詳解]
 
void GameSurfaceSDL::FocusField (Coordinates coord)
 フロア表示のフォーカスを変更する [詳解]
 
void GameSurfaceSDL::Message (std::string message)
 標準メッセージを表示する [詳解]
 
- 基底クラス Deeangband::GameSurface に属する継承公開メンバ関数
 GameSurface::GameSurface (void)
 
 GameSurface::GameSurface (GameWorld *gameWorld)
 
virtual GameSurface::‾GameSurface (void)
 
virtual GAME_COMMAND GetCommand (void)
 ゲームコマンドを受け取る [詳解]
 
virtual void GameSurface::Redraw (void)
 ゲーム画面表示を更新する。 [詳解]
 
virtual void GameSurface::ViewCreatureStatus (Creature *creaturePtr)
 ゲーム画面にクリーチャー情報を表示する。 [詳解]
 
virtual void GameSurface::SetSideStatusCreature (Creature *creaturePtr)
 ゲーム画面左にプレイヤー簡略情報を表示する。 [詳解]
 
virtual void GameSurface::SetField (Field *fieldPtr)
 ゲーム画面表示するフロアを切り替える。 [詳解]
 
virtual void GameSurface::FocusField (int x, int y)
 フロア表示のフォーカスを変更する [詳解]
 
virtual void GameSurface::FocusField (Coordinates coord)
 フロア表示のフォーカスを変更する [詳解]
 
virtual void GameSurface::Message (std::string message)
 標準メッセージを表示する [詳解]
 

非公開メンバ関数

void GameSurfaceSDL::pushAnyKey (void)
 
void GameSurfaceSDL::initInterfaces (void)
 
void GameSurfaceSDL::drawCreatureStatus (Creature *creaturePtr)
 
void GameSurfaceSDL::drawField (GameWorld *gameWorld, Field *fieldPtr, int x, int y, int w, int h)
 フロアを描画する [詳解]
 
void GameSurfaceSDL::updateSideCreatureStatus (Creature *creaturePtr)
 サイドステータス表示を更新する [詳解]
 
void GameSurfaceSDL::drawSideCreatureStatus (void)
 サイドステータスを描画する [詳解]
 
void GameSurfaceSDL::drawMessage (void)
 メッセージを描画する [詳解]
 

非公開変数類

SDL_Renderer * renderer
 SDL用レンダラ参照ポインタ [詳解]
 
SDL_Window * window
 SDLウィンドウ参照ポインタ [詳解]
 
CreatureviewCreaturePtr
 現在のステータス表示対象となるCreature参照ポインタ [詳解]
 
CreaturesideStatusCreatutePtr
 現在のステータス簡易表示対象となるCreature参照ポインタ [詳解]
 
FieldviewFieldPtr
 描画対象となるField参照 [詳解]
 
Coordinates focusPoint
 フロアの描画左上地点 [詳解]
 
TTF_Font * font
 描画標準ポインタ [詳解]
 
SDL_Color color
 カラー標準ポインタ [詳解]
 
SDL_RWops * rwop
 
std::string currentMessage
 現在表示中のメッセージstring [詳解]
 
std::string error
 
SDL_Rect src
 
SDL_Rect title
 
SDL_Surface * windowSurface
 ゲームウィンドウのSurface参照 [詳解]
 
SDL_Surface * titleSurface
 ゲームタイトルグラフィックのSurface参照 [詳解]
 
SDL_Surface * messageSurface
 メッセージグラフィックのSurface参照 [詳解]
 
SDL_Surface * creatureStatusSurface
 クリーチャーステータス表示のSurface参照 [詳解]
 
SDL_Surface * creatureSideStatusSurface
 サイドクリーチャーステータス表示のSurface参照 [詳解]
 

その他の継承メンバ

- 基底クラス Deeangband::GameSurface に属する継承限定公開変数類
GameWorldgameWorld
 対応するGameWorld [詳解]
 

詳解

ゲームのメインインターフェイスクラス(SDL実装)

GameSurfaceSDL.h30 行目に定義があります。

関数詳解

void Deeangband::GameSurfaceSDL::GameSurfaceSDL::drawCreatureStatus ( Creature creaturePtr)
private
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::drawField ( GameWorld gameWorld,
Field fieldPtr,
int  x,
int  y,
int  w,
int  h 
)
private

フロアを描画する

引数
fieldPtr表示したいフロアの構造体参照ポインタ
gameWorldGameWorld参照ポインタ
x左上起点のX座標
y左上起点のY座標
w表示のマス幅
h表示のマス高さ
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::drawMessage ( void  )
private

メッセージを描画する

戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::drawSideCreatureStatus ( void  )
private

サイドステータスを描画する

戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::FocusField ( int  x,
int  y 
)

フロア表示のフォーカスを変更する

引数
x基準X座標
y基準Y座標
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::FocusField ( Coordinates  coord)

フロア表示のフォーカスを変更する

引数
coord基準座標
戻り値
なし
Deeangband::GameSurfaceSDL::GameSurfaceSDL::GameSurfaceSDL ( GameWorld gameWorld)

コンストラクタ

引数
gameWorld処理したいGameWorldインスタンス
GAME_COMMAND Deeangband::GameSurfaceSDL::GameSurfaceSDL::GetCommand ( void  )

プレイヤーからコマンドを取得する

戻り値
ゲームコマンドID
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::initInterfaces ( void  )
private
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::Message ( std::string  message)

標準メッセージを表示する

引数
messageメッセージ
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::pushAnyKey ( void  )
private
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::Redraw ( void  )

ゲーム画面を再描画する

戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::SetField ( Field fieldPtr)

表示するフロアを切り替える

引数
fieldPtr表示したいフロアの参照ポインタ
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::SetSideStatusCreature ( Creature creaturePtr)

ゲーム画面左にプレイヤー簡略情報を表示する。

引数
creaturePtr表示したいクリーチャーのインスタンス参照ポインタ。NULLならば非表示。
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::updateSideCreatureStatus ( Creature creaturePtr)
private

サイドステータス表示を更新する

引数
creaturePtr更新元クリーチャー参照ポインタ
戻り値
なし
void Deeangband::GameSurfaceSDL::GameSurfaceSDL::ViewCreatureStatus ( Creature creaturePtr)

指定されたクリーチャーのステータスを表示する

引数
creaturePtr表示したいクリーチャーの参照ポインタ
戻り値
なし
Deeangband::GameSurfaceSDL::GameSurfaceSDL::‾GameSurfaceSDL ( void  )

デストラクタ

メンバ詳解

SDL_Color Deeangband::GameSurfaceSDL::color
private

カラー標準ポインタ

GameSurfaceSDL.h43 行目に定義があります。

SDL_Surface* Deeangband::GameSurfaceSDL::creatureSideStatusSurface
private

サイドクリーチャーステータス表示のSurface参照

GameSurfaceSDL.h56 行目に定義があります。

SDL_Surface* Deeangband::GameSurfaceSDL::creatureStatusSurface
private

クリーチャーステータス表示のSurface参照

GameSurfaceSDL.h55 行目に定義があります。

std::string Deeangband::GameSurfaceSDL::currentMessage
private

現在表示中のメッセージstring

GameSurfaceSDL.h46 行目に定義があります。

std::string Deeangband::GameSurfaceSDL::error
private

GameSurfaceSDL.h47 行目に定義があります。

Coordinates Deeangband::GameSurfaceSDL::focusPoint
private

フロアの描画左上地点

GameSurfaceSDL.h40 行目に定義があります。

TTF_Font* Deeangband::GameSurfaceSDL::font
private

描画標準ポインタ

GameSurfaceSDL.h42 行目に定義があります。

SDL_Surface* Deeangband::GameSurfaceSDL::messageSurface
private

メッセージグラフィックのSurface参照

GameSurfaceSDL.h54 行目に定義があります。

SDL_Renderer* Deeangband::GameSurfaceSDL::renderer
private

SDL用レンダラ参照ポインタ

GameSurfaceSDL.h34 行目に定義があります。

SDL_RWops* Deeangband::GameSurfaceSDL::rwop
private

GameSurfaceSDL.h45 行目に定義があります。

Creature* Deeangband::GameSurfaceSDL::sideStatusCreatutePtr
private

現在のステータス簡易表示対象となるCreature参照ポインタ

GameSurfaceSDL.h38 行目に定義があります。

SDL_Rect Deeangband::GameSurfaceSDL::src
private

GameSurfaceSDL.h48 行目に定義があります。

SDL_Rect Deeangband::GameSurfaceSDL::title
private

GameSurfaceSDL.h49 行目に定義があります。

SDL_Surface* Deeangband::GameSurfaceSDL::titleSurface
private

ゲームタイトルグラフィックのSurface参照

GameSurfaceSDL.h53 行目に定義があります。

Creature* Deeangband::GameSurfaceSDL::viewCreaturePtr
private

現在のステータス表示対象となるCreature参照ポインタ

GameSurfaceSDL.h37 行目に定義があります。

Field* Deeangband::GameSurfaceSDL::viewFieldPtr
private

描画対象となるField参照

GameSurfaceSDL.h39 行目に定義があります。

SDL_Window* Deeangband::GameSurfaceSDL::window
private

SDLウィンドウ参照ポインタ

GameSurfaceSDL.h35 行目に定義があります。

SDL_Surface* Deeangband::GameSurfaceSDL::windowSurface
private

ゲームウィンドウのSurface参照

GameSurfaceSDL.h51 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: