tsukuba_bunko.peko.scenario
クラス Coordinator

java.lang.Object
  上位を拡張 tsukuba_bunko.peko.scenario.Coordinator
直系の既知のサブクラス:
SelectCoordinator, StageCoordinator, TextCoordinator

public abstract class Coordinator
extends java.lang.Object

Canvas モジュールに対する操作を取り持つクラスの基本機能を提供します。

バージョン:
$Revision: 1.1 $
作成者:
$Author: ppoi $

フィールドの概要
protected  java.lang.Thread _activeThread
          現在アクティブなシーン処理スレッド
protected  SceneContext _context
          シーンコンテクスト
 
コンストラクタの概要
protected Coordinator()
          Coordinator のインスタンスを生成します。
 
メソッドの概要
abstract  void begin()
           
abstract  void commit()
           
 void dormantize()
          Coordinator を非アクティブにします。
protected  ActionControler getActionControler()
          ActionControler を取得します。
protected  CanvasManager getCanvasManager()
          CanvasManager を取得します。
protected  SceneContext getSceneContext()
          現在処理中のシーンコンテクストを取得します。
protected  boolean isActiveThread()
          現在のスレッドがアクティブなスレッドかどうかを判定します。
 void prepare(SceneContext context, java.lang.Thread activeThread)
          この Coordinator インスタンスを指定されたコンテクスト、シーン処理スレッドで動作するように設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

_context

protected SceneContext _context
シーンコンテクスト


_activeThread

protected java.lang.Thread _activeThread
現在アクティブなシーン処理スレッド

コンストラクタの詳細

Coordinator

protected Coordinator()
Coordinator のインスタンスを生成します。

メソッドの詳細

prepare

public void prepare(SceneContext context,
                    java.lang.Thread activeThread)
この Coordinator インスタンスを指定されたコンテクスト、シーン処理スレッドで動作するように設定します。

パラメータ:
context - シーンコンテクスト
activeThread - アクティブなシーン処理スレッド

dormantize

public void dormantize()
Coordinator を非アクティブにします。


begin

public abstract void begin()

commit

public abstract void commit()

isActiveThread

protected boolean isActiveThread()
現在のスレッドがアクティブなスレッドかどうかを判定します。

戻り値:
現在のスレッドがアクティブな場合 true、それ以外の場合 false

getSceneContext

protected SceneContext getSceneContext()
現在処理中のシーンコンテクストを取得します。

戻り値:
シーンコンテクスト

getCanvasManager

protected CanvasManager getCanvasManager()
CanvasManager を取得します。

戻り値:
CanvasManager

getActionControler

protected ActionControler getActionControler()
ActionControler を取得します。

戻り値:
ActionControler


All Rights Reserved. © 1999-2006 The "Peko" Project, Tsukuba Bunko.