JP2007052517A - Information processing method and device, recording medium and program - Google Patents
Information processing method and device, recording medium and program Download PDFInfo
- Publication number
- JP2007052517A JP2007052517A JP2005235640A JP2005235640A JP2007052517A JP 2007052517 A JP2007052517 A JP 2007052517A JP 2005235640 A JP2005235640 A JP 2005235640A JP 2005235640 A JP2005235640 A JP 2005235640A JP 2007052517 A JP2007052517 A JP 2007052517A
- Authority
- JP
- Japan
- Prior art keywords
- state
- transition
- information
- state transition
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は情報処理方法および装置、記録媒体、並びにプログラムに関し、特に、状態遷移図を用いたプログラムの生成および動作確認を容易にできるようにした情報処理方法および装置、記録媒体、並びにプログラムに関する。 The present invention relates to an information processing method and apparatus, a recording medium, and a program, and more particularly to an information processing method and apparatus, a recording medium, and a program that can easily generate a program and check an operation using a state transition diagram.
アプリケーションソフトウェアプログラムの開発を支援する開発ツールが一般に普及しつつある。例えば、オブジェクト指向型のプログラムの開発を支援するものがある(例えば、特許文献1参照)。 Development tools that support the development of application software programs are becoming increasingly popular. For example, there is one that supports the development of an object-oriented program (for example, see Patent Document 1).
また、UML(Unified Modeling Language)に代表される状態遷移図を用いたアプリケーションソフトウェアプログラムのUI(User Interface)の開発ツールも提案されている。 Also, a UI (User Interface) development tool for an application software program using a state transition diagram represented by UML (Unified Modeling Language) has been proposed.
状態遷移図は、各状態毎に実行されるべき動作が論理的に記述されるとともに、各状態において発生する所定のイベントにより他の状態に遷移する方向が示された図である。上述したアプリケーションソフトウェアプログラムのUIの開発ツールは、プログラムを状態遷移図として表示させると共に、その表示された状態遷移図そのものが操作されると、状態遷移図の操作内容をプログラムに反映させることで、プログラムを編集するものである。 The state transition diagram is a diagram in which an operation to be executed for each state is logically described, and a direction in which a transition is made to another state by a predetermined event occurring in each state is shown. The UI development tool of the application software program described above displays the program as a state transition diagram, and when the displayed state transition diagram itself is operated, the operation content of the state transition diagram is reflected in the program, Edit the program.
しかしながら、上述のような状態遷移図を編集することでプログラムを編集する開発ツールの場合、編集中に、各状態において実行されるプログラムの記述を見ることはできるものの、実際に、各状態において動画ファイルやアニメーションが再生されるようなとき、それらを確認することはできなかった。このため、状態遷移図をもってプログラムの流れを把握しながらUIを編集することはできても、実際に、各状態において実際に実行される動作を確認しながら編集することはできなかった。 However, in the case of a development tool that edits a program by editing the state transition diagram as described above, the description of the program that is executed in each state can be viewed during editing, but in practice, a moving image is displayed in each state. When files and animations were played, they could not be confirmed. For this reason, even though the UI can be edited while grasping the flow of the program with the state transition diagram, it cannot actually be edited while checking the operation actually executed in each state.
本発明は、このような状況に鑑みてなされたものであり、特に、各状態におけるプログラムの記述に対応する動作を視覚的に捉え易くすることにより、状態遷移図を用いたプログラムの生成および動作確認を容易にできるようにするものである。 The present invention has been made in view of such a situation, and in particular, by making it easy to visually grasp the operation corresponding to the description of the program in each state, the generation and operation of the program using the state transition diagram It is intended to facilitate confirmation.
本発明の一側面の情報処理方法およびプログラムは、少なくとも2以上の状態、それぞれの前記状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報に基づいて、状態遷移図を生成する生成ステップと、前記生成ステップの処理により生成された状態遷移図を表示する表示ステップと、前記表示ステップにより表示された状態遷移図を操作する操作ステップと、前記操作ステップの処理における操作内容に応じて、前記状態遷移情報を更新する更新ステップと、前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成ステップの処理を制御する生成制御ステップとを含む。 An information processing method and program according to one aspect of the present invention includes at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and to which other state the transition is caused by the event. A generation step for generating a state transition diagram based on state transition information including information on a transition direction to be displayed, a display step for displaying a state transition diagram generated by the processing of the generation step, and a display step displayed by the display step When the operation step for operating the state transition diagram, the update step for updating the state transition information according to the operation content in the processing of the operation step, and the operation in the state are operations for executing a predetermined file, Processing of the generating step is performed so that information indicating a predetermined file is displayed on the state transition diagram. And a generation control step of controlling.
前記操作ステップの処理により前記所定のファイルを示すアイコンが、前記状態を示す画像上にドラッグアンドドロップされる場合、前記更新ステップには、前記状態における動作を、前記ドラッグアンドドロップされた所定のファイルを実行する動作に更新させるようにすることができる。ここで、「ドラッグ」とは、マウスポインタの操作法で、マウスボタンを押下したままマウスポインタを移動させる操作であり、「ドロップ」とは、ドラッグの移動先でマウスボタンを離す操作である。「ドラッグアンドドロップ」は、ドラッグとドロップを連続的に行う操作である。したがって、同様の操作が可能であれば、他の操作方法であってもよく、必ずしも「ドラッグアンドドロップ」でなくともよい。 When the icon indicating the predetermined file is dragged and dropped on the image indicating the state by the process of the operation step, the update step includes the operation of the state in the predetermined file dragged and dropped. It can be made to update to operation which performs. Here, “drag” is an operation method of the mouse pointer, which is an operation of moving the mouse pointer while pressing the mouse button, and “drop” is an operation of releasing the mouse button at the drag destination. “Drag and drop” is an operation of continuously dragging and dropping. Therefore, as long as the same operation is possible, another operation method may be used, and the operation may not necessarily be “drag and drop”.
前記状態における動作が、前記所定のファイルを実行する動作である場合、前記生成制御ステップの処理には、前記所定のファイルが実行されることを示す情報を、前記状態遷移図上の前記状態を示す画像上に表示させるように前記生成ステップの処理を制御させるようにすることができる。 When the operation in the state is an operation of executing the predetermined file, the generation control step processing includes information indicating that the predetermined file is executed, the state on the state transition diagram. The processing of the generation step can be controlled so as to be displayed on the image shown.
前記状態遷移図上の前記状態を示す画像は、前記状態情報を表示する画像とすることができ、前記状態における動作が、前記所定のファイルを実行する動作である場合、前記生成制御ステップの処理には、前記所定のファイルが実行されることを示す情報として、前記状態遷移図上の前記状態情報を示す画像上に所定のアイコンを付加して表示させるように前記生成ステップの処理を制御させるようにすることができる。 The image indicating the state on the state transition diagram may be an image displaying the state information, and when the operation in the state is an operation of executing the predetermined file, the process of the generation control step The process of the generation step is controlled so that a predetermined icon is added and displayed on the image indicating the state information on the state transition diagram as information indicating that the predetermined file is executed. Can be.
前記所定のファイルは、アニメーションまたは動画のファイルとすることができる。 The predetermined file may be an animation or movie file.
本発明の一側面の情報処理装置は、少なくとも2以上の状態、それぞれの前記状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報に基づいて、状態遷移図を生成する生成手段と、前記生成手段により生成された状態遷移図を表示する表示手段と、前記表示手段により表示された状態遷移図を操作する操作手段と、前記操作手段における操作内容に応じて、前記状態遷移情報を更新する更新手段と、前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成手段を制御する生成制御手段とを含む。 The information processing apparatus according to one aspect of the present invention includes at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition indicating which other state is to be transitioned by the event Based on the state transition information including direction information, a generation unit that generates a state transition diagram, a display unit that displays the state transition diagram generated by the generation unit, and a state transition diagram displayed by the display unit Information indicating the predetermined file when the operation means to operate, the updating means for updating the state transition information according to the operation content in the operation means, and the operation in the state is an operation for executing a predetermined file Including generation control means for controlling the generation means so as to be displayed on the state transition diagram.
本発明の一側面の情報処理方法および装置、並びにプログラムにおいては、少なくとも2以上の状態、それぞれの前記状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報に基づいて、状態遷移図が生成され、生成された状態遷移図が表示され、表示された状態遷移図が操作され、操作内容に応じて、前記状態遷移情報が更新され、前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成手段を制御する生成制御手段とを含むことを特徴とする。 In the information processing method and apparatus, and the program according to one aspect of the present invention, at least two or more states, operations in the respective states, events at the time of transition in the respective states, and any other states depending on the events A state transition diagram is generated based on state transition information including transition direction information indicating whether to make a transition, the generated state transition diagram is displayed, the displayed state transition diagram is operated, and depending on the operation content When the state transition information is updated and the operation in the state is an operation of executing a predetermined file, the generation unit is controlled to display information indicating the predetermined file on the state transition diagram Generation control means.
情報処理装置は、独立した装置であっても良いし、情報処理装置の情報処理を行うブロックであっても良い。 The information processing apparatus may be an independent apparatus or a block that performs information processing of the information processing apparatus.
以上のように、本発明の一側面によれば、状態遷移図を用いたプログラムの生成および動作確認を容易にすることができ、UIのプログラムの開発の効率を向上させることが可能となる。 As described above, according to one aspect of the present invention, it is possible to easily generate a program and check an operation using a state transition diagram, and it is possible to improve the efficiency of UI program development.
以下に本発明の実施の形態を説明するが、本発明の構成要件と、発明の詳細な説明に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、発明の詳細な説明に記載されていることを確認するためのものである。従って、発明の詳細な説明中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. Correspondences between the configuration requirements of the present invention and the embodiments described in the detailed description of the present invention are exemplified as follows. This description is to confirm that the embodiments supporting the present invention are described in the detailed description of the invention. Accordingly, although there are embodiments that are described in the detailed description of the invention but are not described here as embodiments corresponding to the constituent elements of the present invention, It does not mean that the embodiment does not correspond to the configuration requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.
すなわち、本発明の一側面の情報処理方法およびプログラムは、少なくとも2以上の状態、それぞれの前記状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報に基づいて、状態遷移図を生成する生成ステップ(例えば、図11のステップS121乃至S123の処理)と、前記生成ステップの処理により生成された状態遷移図を表示する表示ステップ(例えば、図12のステップS141乃至S145の処理)と、前記表示ステップにより表示された状態遷移図を操作する操作ステップ(例えば、図7のステップS63,S67の処理)と、前記操作ステップの処理における操作内容に応じて、前記状態遷移情報を更新する更新ステップ(例えば、図7のステップS64の処理)と、前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成ステップの処理を制御する生成制御ステップ(例えば、図11のステップS125の処理)とを含む。 That is, the information processing method and program according to one aspect of the present invention transition to at least two or more states, operations in the respective states, events at the time of transition in the respective states, and any other states depending on the events. Based on the state transition information including the transition direction information indicating the state, a generation step for generating a state transition diagram (for example, the processing of steps S121 to S123 in FIG. 11) and the state transition generated by the processing of the generation step A display step for displaying a figure (for example, processing in steps S141 to S145 in FIG. 12), an operation step for operating the state transition diagram displayed in the display step (for example, processing in steps S63 and S67 in FIG. 7), The state transition information is updated according to the operation content in the operation step processing. When the new step (for example, the process of step S64 in FIG. 7) and the operation in the state are operations for executing a predetermined file, information indicating the predetermined file is displayed on the state transition diagram. A generation control step (for example, the process of step S125 of FIG. 11) for controlling the process of the generation step.
前記操作ステップの処理により前記所定のファイルを示すアイコンが、前記状態を示す画像上にドラッグアンドドロップされる場合、前記更新ステップ(例えば、図7のステップS64の処理)には、前記状態における動作を、前記ドラッグアンドドロップされた所定のファイルを実行する動作に更新させるようにすることができる。 When the icon indicating the predetermined file is dragged and dropped on the image indicating the state by the processing in the operation step, the update step (for example, the processing in step S64 in FIG. 7) includes the operation in the state. Can be updated to an operation of executing the predetermined file dragged and dropped.
前記状態における動作が、前記所定のファイルを実行する動作である場合、前記生成制御ステップの処理(例えば、図11のステップS125の処理)には、前記所定のファイルが実行されることを示す情報を、前記状態遷移図上の前記状態を示す画像上に表示させるように前記生成ステップの処理を制御させるようにすることができる。 When the operation in the state is an operation of executing the predetermined file, information indicating that the predetermined file is executed in the process of the generation control step (for example, the process of step S125 of FIG. 11). Can be controlled to be displayed on an image showing the state on the state transition diagram.
前記状態遷移図上の前記状態を示す画像は、前記状態情報を表示する画像とすることができ、前記状態における動作が、前記所定のファイルを実行する動作である場合、前記生成制御ステップの処理(例えば、図11のステップS121乃至S123の処理)には、前記所定のファイルが実行されることを示す情報として、前記状態遷移図上の前記状態情報を示す画像上に所定のアイコンを付加して表示させるように前記生成ステップの処理を制御させるようにすることができる。 The image indicating the state on the state transition diagram may be an image displaying the state information, and when the operation in the state is an operation of executing the predetermined file, the process of the generation control step (For example, the processing in steps S121 to S123 in FIG. 11), as information indicating that the predetermined file is executed, a predetermined icon is added on the image indicating the state information on the state transition diagram. The process of the generating step can be controlled so as to be displayed.
本発明の一側面の情報処理装置は、少なくとも2以上の状態、それぞれの前記状態における動作、それぞれの前記状態における遷移時のイベント、および前記イベントによりどの他の前記状態に遷移するかを示す遷移方向の情報を含む状態遷移情報に基づいて、状態遷移図を生成する生成手段(例えば、図1の状態遷移図生成部15)と、前記生成手段により生成された状態遷移図を表示する表示手段(例えば、図1の表示部19)と、前記表示手段により表示された状態遷移図を操作する操作手段(例えば、図1の操作部11)と、前記操作手段における操作内容に応じて、前記状態遷移情報を更新する更新手段(例えば、図1の編集部12)と、前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成手段を制御する生成制御手段(例えば、図1のアイコン付加部43)とを含む。
The information processing apparatus according to one aspect of the present invention includes at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition indicating which other state is to be transitioned by the event Based on the state transition information including the direction information, generating means for generating a state transition diagram (for example, the state transition
このように、状態遷移図を編集することにより状態遷移プログラムを開発するような場合には、所定の状態における動作が、所定のファイルを実行することであるときには、所定のファイルの存在を確実に認識することができる。 In this way, when developing a state transition program by editing a state transition diagram, when the operation in a predetermined state is to execute a predetermined file, the existence of the predetermined file is reliably ensured. Can be recognized.
図1は、本発明を適用した状態遷移プログラム編集装置1の一実施の形態の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an embodiment of a state transition
状態遷移プログラム編集装置1は、アプリケーションソフトウェアプログラムにおけるUIのプログラムの開発を目的とした編集装置であり、各状態における動作、それぞれの状態における遷移時のイベント、および各イベント毎にどの他の状態に遷移するかを示す遷移方向の情報を含む状態遷移情報(ステートデータ)に基づいて、状態遷移図を生成すると共に、生成した状態遷移図を表示する。さらに、状態遷移プログラム編集装置1は、表示した状態遷移図が操作されることにより変更されると、変更された状態遷移図に対応して、状態遷移情報を更新する。
The state transition
操作部11は、マウスやキーボードなどから構成されており、状態遷移プログラム編集装置1を操作するユーザによる操作に対応する信号を発生して編集部12に供給する。
The
編集部12は、ステート編集部31、トランジション編集部32、およびスクリプト編集部33より構成されており、操作部11より供給されてくる信号に基づいて、状態遷移情報(ステートデータ)を編集する。ステートデータは、各状態(ステート)毎に動作を示す情報(スクリプト情報)およびイベントに応じて遷移する状態の遷移先の情報(トランジション情報)が記述されている。
The
ステート編集部31は、状態(ステート)の新規生成、および表示位置や大きさなどの情報を編集し、編集結果をステートデータ格納部13に格納させる。トランジション編集部32は、各状態における動作が実行されている間に発生するイベントに応じて、遷移する遷移先となる状態の情報を編集し、ステートデータ格納部13に格納させる。スクリプト編集部33は、各状態における動作内容を編集し、ステートデータ格納部13に格納させる。スクリプト編集部33により編集される動作内容は、例えば、リンクデータ格納部14に格納されているアニメーションデータを再生させるといったものである。この場合、スクリプト編集部33は、リンクデータ格納部14に格納されたリンクファイルである、アニメーションデータのうち、再生させる開始フレームの情報も編集する。
The
ステートデータ格納部13は、各状態(ステート)ごとに編集部12によりトランジション情報やスクリプト情報が編集されたステートデータを格納し、必要に応じて状態遷移図生成部15および状態遷移エンジン16に供給する。
The state
リンクデータ格納部14は、上述したスクリプト情報により所定の状態で実行される動作のうち、読み出されて実行されるリンクファイル(アニメーションファイルおよび動画ファイルなどを含む各種の実行ファイル)を格納しており、必要に応じて、状態動作実行部17、および表示制御部18にリンクファイルの情報を供給する。
The link
状態遷移図生成部15は、ステート枠生成部41、トランジション生成部42、アイコン付加部43、およびリンクファイルステート検出部44から構成されており、ステートデータ格納部13に格納されているステートデータを読み出し、状態遷移図を生成する。ステート枠生成部41は、各状態ごとに矩形の枠(ステート枠)を生成すると共に、状態遷移エンジン16より供給される今現在の状態の情報に基づいて、今現在の状態を示すステート枠内の表示色を変化させて表示する。トランジション42は、各状態における動作中に発生するイベントごとに遷移先を示す矢印を生成する。アイコン付加部43は、リンクファイル付きステート検索部44により検索された状態情報のうち、リンクファイルが設定されているステート枠内に、リンクファイルが設定されていることを示すアイコンを付加する。リンクファイル付きステート検索部44は、ステートデータのうち、スクリプト情報を検索して、リンクファイルが設定されているステートを検索し、検索結果をアイコン付加部43に供給する。
The state transition
状態遷移エンジン16は、ステートデータ格納部13に格納されているステートデータを読み出すと共に、イベント検出部20より供給されるイベントの情報に基づいて、今現在のステートを検索し、検索結果である今現在のステートを示す情報を状態遷移図生成部15および状態動作実行部17に供給する。
The
状態動作実行部17は、状態遷移エンジン16より供給される今現在の状態のステートデータに基づいて、必要に応じてリンクデータ格納部14よりリンクデータを読み出し、現在の状態の動作を実行し、実行結果を表示制御部18に供給する。
The state
表示制御部18は、スクリプト表示制御部51、状態遷移図表示制御部52、ステートリスト表示制御部53、リンクリスト表示制御部54、および状態動作表示制御部55より構成され、表示部19に表示する表示画面を生成して表示させる。
The
スクリプト表示制御部51は、ステートデータ格納部13に格納されているステートデータよりスクリプト情報を読み出して、例えば、図2のスクリプト情報を示すスクリプト画面115を生成し、表示を制御する。尚、図2においては、表示部19で表示される表示画面101が示されている。表示画面101には、ステートリスト画面111、リンクリスト画面112、動作表示画面113、状態遷移図表示画面114、およびスクリプト画面115が設けられている。また、図2においては、スクリプト表示画面115には、スクリプトが記述されていないが、例えば、図13または図14で示されるように、スクリプトが表示される。このスクリプトの記述については、詳細を後述する。
The script
状態遷移図表示制御部52は、状態遷移図生成部15より供給されてくる状態遷移図の情報に基づいて、例えば、図2の状態遷移図表示画面114を生成し、表示を制御する。図2においては、状態A(State A:ステートA)を示すステート枠131、状態B(State B:ステートB)を示すステート枠132、状態C(State C:ステートC)を示すステート枠133、および、状態D(State D:ステートD)を示すステート枠134が示されており、それぞれが、トランジション141乃至148で結ばれている。トランジション141乃至148は、それぞれ状態間を遷移する方向とイベントを示している。
The state transition diagram
より詳細には、トランジション141は、「KeyPress_x」と示され、矢印が状態Aから状態Dに向って表示されており、状態Aの動作が実行されている場合、操作部11の「x」のキーが操作されるというイベントが発生すると、状態Aから状態Bに遷移することを示している。
More specifically, the
同様に、トランジション142は、「KeyPress_2」と示され、矢印が状態Aから状態Bに向って表示されており、状態Aの動作が実行されている場合、操作部11の「2」のキーが操作されるというイベントが発生すると、状態Aから状態Bに遷移することを示している。
Similarly, the
また、トランジション143は、「KeyPress_3」と示され、矢印が状態Bから状態Aに向って表示されており、状態Bの動作が実行されている場合、操作部11の「3」のキーが操作されるというイベントが発生すると、状態Bから状態Aに遷移することを示している。
In addition, the
さらに、トランジション144は、「KeyPress_b」と示され、矢印が状態Bから状態Cに向って表示されており、状態Bの動作が実行されている場合、操作部11の「b」のキーが操作されるというイベントが発生すると、状態Bから状態Cに遷移することを示している。
Further, the
また、トランジション145は、「KeyPress_a」と示され、矢印が状態Cから状態Bに向って表示されており、状態Cの動作が実行されている場合、操作部11の「a」のキーが操作されるというイベントが発生すると、状態Cから状態Bに遷移することを示している。
In addition, the
さらに、トランジション146は、「KeyPress_1」と示され、矢印が状態Cから状態Dに向って表示されており、状態Cの動作が実行されている場合、操作部11の「1」のキーが操作されるというイベントが発生すると、状態Cから状態Dに遷移することを示している。
Further, the
また、トランジション147は、「KeyPress_0」と示され、矢印が状態Dから状態Cに向って表示されており、状態Dの動作が実行されている場合、操作部11の「0」のキーが操作されるというイベントが発生すると、状態Dから状態Cに遷移することを示している。
The
さらに、トランジション148は、「KeyPress_z」と示され、矢印が状態Dから状態Aに向って表示されており、状態Dの動作が実行されている場合、操作部11の「z」のキーが操作されるというイベントが発生すると、状態Dから状態Aに遷移することを示している。
Further, the
図1の説明に戻る。ステートリスト表示制御部53は、ステートデータ格納部14に格納されているステートデータに基づいて、例えば、図2のステートリスト画面111を生成し、表示を制御する。図2のステートリスト画面111には、「Stage」フォルダ内における「logic」フォルダ内の「main logic」フォルダ内に、それぞれ「StateA」乃至「StateD」のアイコンが表示されており、「Stage」フォルダ内における「logic」フォルダ内の「main logic」フォルダ内に、ステート名がそれぞれ「StateA」乃至「StateD」となる状態A乃至Dのステート情報が格納されていることが示されている。
Returning to the description of FIG. The state list
リンクリスト表示制御部54は、リンクデータ格納部14に格納されているリンクファイルの情報に基づいて、例えば、図2のリンクリスト画面112を生成し、表示を制御する。図2のリンクリスト画面112には、「(Main)test.ecd」フォルダ内に、それぞれ「flower」、「forest」、「temple」、および「flower2」のアイコンが表示されており、リンクファイルである「flower」、「forest」、「temple」、および「flower2」が「(Main)test ecd」フォルダ内に格納されていることが示されている。尚、このリンクファイルの各アイコンは、操作部11により操作されるポインタ150によりドラッグし、所望とするステート枠131乃至134でドロップすることにより、ドロップされたステート枠131乃至134に対応するステートで実行される。すなわち、リンクファイルが、音声データ、画像データ、またはアニメーションなどの場合、ドロップされた状態A乃至Dのいずれかにおいて、スクリプトA乃至Dが更新されて、リンクファイルのそれぞれ音声、画像、およびアニメーションを再生させる情報が記録される。
The link list
状態動作表示制御部55は、状態動作実行部17より供給される状態動作の実行結果に基づいて、例えば、図2で示されるような状態動作画面113を生成し、表示を制御する。尚、図2においては、スクリプトの記述がどのステートにもされておらず、実行されるものがないので、状態動作画面113は、黒の画面となっている。
The state operation
表示部19は、CRT(Cathode Ray Tube)またはLCD(Liquid Crystal Display)などから構成され、表示制御部18により生成された画面を表示する。
The display unit 19 includes a CRT (Cathode Ray Tube) or an LCD (Liquid Crystal Display), and displays the screen generated by the
次に、図3を参照して、ステートデータ格納部13に格納されるステート情報について説明する。
Next, state information stored in the state
ステート情報は、例えば、図2の状態遷移図表示画面114で示されるような状態遷移図が構成されるような場合、図3で示されるような状態で、状態A乃至Dごとにステートデータ格納部13に格納されている。図3においては、左から状態A乃至Dの順にステート情報のデータ構造が示されている。
For example, when the state transition diagram as shown in the state transition
各ステート(状態)には、トランジション情報として、各イベントと対応する遷移先となる状態の情報が記録される領域が確保されている。また、各状態におけるスクリプトが記録される領域が確保されている。 In each state (state), an area in which information of a state that is a transition destination corresponding to each event is recorded as transition information. In addition, an area for recording a script in each state is secured.
すなわち、図3の状態A(State A)においては、トランジション情報として、イベント欄には「KeyPress_2」および「KeyPress_x」が記録され、対応する遷移先として、それぞれ「State B」および「State D」と記録されている。すなわち、このトランジション情報は、図2のトランジション142,141にそれぞれ対応する情報として記録されている。また、状態Aの場合、トランジション情報の下には、スクリプト情報として、「スクリプトA」が記録されている。
That is, in the state A (State A) of FIG. 3, “KeyPress_2” and “KeyPress_x” are recorded in the event column as transition information, and “State B” and “State D” are respectively set as the corresponding transition destinations. It is recorded. That is, the transition information is recorded as information corresponding to the
さらに、状態B(State B)においては、トランジション情報として、イベント欄には「KeyPress_3」および「KeyPress_b」が記録され、対応する遷移先として、それぞれ「State A」および「State C」と記録されている。すなわち、このトランジション情報は、図2のトランジション143,144にそれぞれ対応する情報として記録されている。また、状態Bの場合、トランジション情報の下には、スクリプト情報として、「スクリプトB」が記録されている。
Furthermore, in state B (State B), “KeyPress_3” and “KeyPress_b” are recorded in the event column as transition information, and “State A” and “State C” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the
さらに、状態C(State C)においては、トランジション情報として、イベント欄には「KeyPress_a」および「KeyPress_1」が記録され、対応する遷移先として、それぞれ「State B」および「State D」と記録されている。すなわち、このトランジション情報は、図2のトランジション145,146にそれぞれ対応する情報として記録されている。また、状態Cの場合、トランジション情報の下には、スクリプト情報として、「スクリプトC」が記録されている。
Furthermore, in state C (State C), “KeyPress_a” and “KeyPress_1” are recorded in the event column as transition information, and “State B” and “State D” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the
さらに、状態D(State D)においては、トランジション情報として、イベント欄には「KeyPress_z」および「KeyPress_0」が記録され、対応する遷移先として、それぞれ「State A」および「State C」と記録されている。すなわち、このトランジション情報は、図2のトランジション148,147にそれぞれ対応する情報として記録されている。また、状態Dの場合、トランジション情報の下には、スクリプト情報として、「スクリプトD」が記録されている。
Furthermore, in state D (State D), “KeyPress_z” and “KeyPress_0” are recorded in the event column as transition information, and “State A” and “State C” are recorded as the corresponding transition destinations, respectively. Yes. That is, this transition information is recorded as information corresponding to the
次に、図4のフローチャートを参照して、編集部12による状態遷移プログラム編集処理について説明する。
Next, the state transition program editing process by the
ステップS1において、ステート編集部31は、操作部11より供給されてくる信号に基づいて、ステート編集が指示されたか否かを判定する。ステップS1において、例えば、ステート編集処理が指示されたと判定された場合、ステップS2において、ステート編集部31は、ステート編集処理を実行し、その処理は、元に戻る。尚、ステート編集処理については、図5を参照して後述する。
In step S <b> 1, the
ステップS1において、例えば、ステート編集処理が指示されていないと判定された場合、ステップS3において、トランジション編集部32は、操作部11より供給されてくる信号に基づいて、トランジション編集が指示されたか否かを判定する。ステップS3において、例えば、トランジション編集処理が指示されたと判定された場合、ステップS4において、トランジション編集部32は、トランジション編集処理を実行し、その処理は、元に戻る。尚、トランジション編集処理については、図6を参照して後述する。
In step S1, for example, when it is determined that the state editing process is not instructed, in step S3, the
ステップS3において、例えば、トランジション編集処理が指示されていないと判定された場合、ステップS5において、スクリプト編集部33は、操作部11より供給されてくる信号に基づいて、スクリプト編集が指示されたか否かを判定する。ステップS5において、例えば、スクリプト編集処理が指示されたと判定された場合、ステップS6において、スクリプト編集部33は、スクリプト編集処理を実行し、その処理は、元に戻る。尚、スクリプト編集処理については、図7を参照して後述する。
In step S3, for example, when it is determined that the transition editing process is not instructed, in step S5, the
以上の処理により、ステートデータが更新されることになるので、対応する状態遷移プログラムが更新される。 Since the state data is updated by the above processing, the corresponding state transition program is updated.
次に、図5のフローチャートを参照して、ステート編集処理について説明する。 Next, the state editing process will be described with reference to the flowchart of FIG.
ステップS21において、ステート編集部31は、操作部11からの信号に基づいて、新規のステート(状態)を生成する処理であるか否かを判定する。例えば、図2の表示画面101上の図示せぬボタンが操作され、新規のステートを生成する処理が指示された場合、ステップS22において、ステート編集部31は、新規のステートを生成する。すなわち、ステート編集部31は、新たな状態に対応するステート情報をステートデータ格納部13に記録する。
In step S <b> 21, the
ステップS23において、ステート編集部31は、新規に生成されたステートを編集対象ステートに設定する。
In step S23, the
ステップS24において、ステート編集部31は、編集対象ステートのステート情報に更新があるか否かを判定する。ここで更新の有無が判定されるのは、ステート情報のうちステート名や対応するステート枠の表示位置などの情報である。すなわち、ステート編集部31が編集するのは、ステート情報のうち、ステート名およびステート枠の表示位置の情報である。
In step S24, the
ステップS24において、ステート情報のうち、ステート名およびステート枠の表示位置の情報に更新があると判定された場合、ステップS25において、ステート編集部31は、更新された、ステート名およびステート枠の表示位置の情報を編集対象ステートのステート情報に反映させて更新する。
In step S24, when it is determined that the state name and the display position information of the state frame are updated in the state information, in step S25, the
一方、ステップS24において、更新がないと判定された場合、ステップS25の処理は、スキップされる。 On the other hand, if it is determined in step S24 that there is no update, the process of step S25 is skipped.
ステップS26において、ステート編集処理の終了が指示されたか否かを判定し、終了が指示されない場合、その処理は、ステップS24に戻り、終了が指示されたと判定された場合、ステート編集処理は終了する。 In step S26, it is determined whether or not the end of the state editing process is instructed. If the end is not instructed, the process returns to step S24, and if it is determined that the end is instructed, the state editing process ends. .
また、ステップS21において、新規のステートの生成ではないと判定された場合、ステップS27において、既存のステートが選択されたか否かが判定される。すなわち、図12を参照して後述する表示処理により表示される、例えば、図2で示されるような状態遷移図表示画面114上に表示された既存のステート枠131乃至134のいずれかがポインタ150が操作部111により操作されて選択されたか否かにより、対応するステートA乃至Dのステートデータ格納部13により格納されているステート情報のいずれかが選択されたか否かが判定される。例えば、既存のステートのステート情報が選択された場合、ステップS28において、ステート編集部31は、選択されたステートを編集対象ステートに設定し、その処理は、ステップS24に進む。
If it is determined in step S21 that a new state is not generated, it is determined in step S27 whether an existing state is selected. In other words, any of the existing state frames 131 to 134 displayed on the state transition
一方、ステップS27において、既存のステートが選択されたと判定されなかった場合、その処理は、ステップS21に戻り、それ以降の処理が繰り返される。 On the other hand, if it is not determined in step S27 that an existing state has been selected, the process returns to step S21, and the subsequent processes are repeated.
すなわち、以上の処理により、新規のステート、または、既存のステートの何れかのステート情報について、ステート名およびステート枠の表示位置が、新たに設定されるか、または、更新されることになる。 That is, by the above processing, the state name and the display position of the state frame are newly set or updated for state information of a new state or an existing state.
次に、図6のフローチャートを参照して、トランジション編集処理について説明する。 Next, the transition editing process will be described with reference to the flowchart of FIG.
ステップS41において、トランジション編集部32は、既存のステートが選択されたか否かを判定し、選択されるまで、その処理を繰り返す。すなわち、図12を参照して後述する表示処理により表示される、例えば、図2で示されるような状態遷移図表示画面114上に表示された既存のステート枠131乃至134のいずれかがポインタ150が操作部111により操作されて選択されたか否かにより、対応するステートA乃至Dのステートデータ格納部13により格納されているステート情報のいずれかが選択されたか否かが判定される。そして、ステップS41において、例えば、既存のステートのステート情報が選択された場合、ステップS42において、トランジション編集部32は、選択されたステートを編集対象ステートに設定し、その処理は、ステップS43に進む。
In step S41, the
ステップS43において、トランジション編集部32は、編集対象ステートのステート情報のうち、遷移先が指定されたか否かを判定する。すなわち、例えば、図2の状態遷移図表示画面114で示されるように、ステート枠131乃至134で示される状態A乃至Dのうち、例えば、状態Aが選択され、編集対象ステートに設定された場合、操作部111によりポインタ150をドラッグして状態Aのステート枠131を基点として、例えば、状態Dのステート枠134を終点とするトランジション141で示されるような矢印を引いた場合、遷移先が状態Dに設定されることになる。
In step S43, the
そこで、ステップS43においては、トランジション編集部32は、このようにトランジションの矢印が編集対象ステートの状態を示すステート枠から遷移先を示す状態のステート枠までの矢印が引かれたか否かにより、遷移先が設定されたか否かを判定する。
Therefore, in step S43, the
ステップS43において、遷移先が設定されたと判定された場合、ステップS44において、トランジション編集部32は、イベントを指定するように要求する。より具体的には、すなわち、例えば、遷移先を指定する処理として、図2のトランジション141がポインタ150により引かれた場合、トランジション編集部32は、トランジションの横にイベントを指定する図示せぬ空欄を表示し、入力を促す。
If it is determined in step S43 that a transition destination has been set, in step S44, the
ステップS45において、トランジション編集部32は、遷移する際のイベントが指定されたか否かを判定し、指定されたと判定されるまで、その処理を繰り返す。すなわち、トランジション編集部32は、その空欄にイベントを指定する情報が入力されたか否かを判定し、イベントが指定されたか否かを判定する。
In step S45, the
ステップS45において、イベントが指定されたと判定された場合、ステップS46において、トランジション編集部32は、ステートデータ格納部13にアクセスし、編集対象ステートのステート情報を読み出し、指定された遷移先とイベントの情報を反映させて更新する。すなわち、例えば、図2のトランジション141の場合、遷移先として「State D」が指定され、イベントとして、「KeyPress_x」が指定されるので、図3の左部で示されるように、遷移先とイベントに「State D」、および、「KeyPress_x」を追加して更新する。
If it is determined in step S45 that an event has been designated, in step S46, the
ステップS43において、遷移先が指定されていない場合、ステップS44乃至S46の処理がスキップされ、ステップS47において、トランジション編集処理の終了が指示されたか否かを判定し、終了が指示されない場合、処理は、ステップS43に戻る。すなわち、トランジション編集処理の終了が指示されるまで、ステップS43乃至S47の処理が繰り返される。 If the transition destination is not specified in step S43, the processing in steps S44 to S46 is skipped. In step S47, it is determined whether or not the end of the transition editing process is instructed. Return to step S43. That is, the processes in steps S43 to S47 are repeated until the end of the transition editing process is instructed.
そして、ステップS47において、トランジション編集処理の終了が指示された場合、その処理は終了する。 If the end of the transition editing process is instructed in step S47, the process ends.
以上の処理により、ポインタ150を操作部111により操作し、編集対象ステートのステート枠から遷移先のステート枠に矢印を引くだけで、トランジションの情報を編集することが可能となる。
With the above processing, the transition information can be edited simply by operating the
次に、図7のフローチャートを参照して、スクリプト編集処理について説明する。 Next, script editing processing will be described with reference to the flowchart of FIG.
ステップS61において、スクリプト編集部33は、既存のステートが選択されたか否かを判定し、選択されるまで、その処理を繰り返す。すなわち、図12を参照して後述する表示処理により表示される、例えば、図2で示されるような状態遷移図表示画面114上に表示された既存のステート枠131乃至134のいずれかがポインタ150が操作部111により操作されて選択されたか否かにより、対応するステートA乃至Dのステートデータ格納部13により格納されているステート情報のいずれかが選択されたか否かが判定される。そして、ステップS61において、例えば、既存のステートのステート情報が選択された場合、ステップS62において、スクリプト編集部33は、選択されたステートを編集対象ステートに設定し、その処理は、ステップS63に進む。
In step S61, the
ステップS63において、スクリプト編集部33は、スクリプトが更新されたか否かを判定する。より詳細には、後述する表示処理により、図2で示されるスクリプト表示画面115には、編集対象ステートのスクリプト情報が表示される。そこで、ポインタ150が操作部111により操作され、スクリプト表示画面115が選択されると、操作部111のキーボードによりスクリプト情報の記述内容を入力または更新することができる。そこで、スクリプト編集部33は、スクリプト表示画面115の記述内容が、操作部111のキーボードにより更新されたか否かを判定する。
In step S63, the
ステップS63において、例えば、スクリプト情報が更新されたと判定された場合、スクリプト編集部33は、ステートデータ13にアクセスし、編集対象ステートのステート情報を読み出し、スクリプト表示画面115上で編集された情報に基づいて、スクリプトを変更して、ステート情報を更新する。
In step S63, for example, when it is determined that the script information has been updated, the
ステップS65において、ステート編集部33は、ステート編集処理の終了が指示されたか否かを判定し、終了が指示されていない場合、その処理は、ステップS61に戻る。また、ステート編集処理の終了が指示された場合、その処理は、終了する。
In step S65, the
一方、ステップS61において、既存のステートが選択されなかったと判定された場合、ステップS66において、スクリプト編集部33は、リンクファイルが選択されたか否かを判定する。すなわち、例えば、図2で示されるリンクリスト112上のいずれかのリンクファイルを示すアイコンがポインタ150が操作部111により操作されることにより選択されたか否かを判定する。
On the other hand, if it is determined in step S61 that no existing state has been selected, the
例えば、ステップS66において、リンクファイルが選択されたと判定された場合、ステップS67において、スクリプト編集部33は、選択されたリンクファイルがいずれかの状態を示すステート枠内にドロップされたか否かを判定する。すなわち、図2である場合、選択されたリンクファイルが、ステート枠131乃至134のいずれかにドロップされたか否かが判定される。
For example, if it is determined in step S66 that a link file has been selected, in step S67, the
例えば、図2のリンクリスト表示画面112に表示されている「temple」と表示されたアイコンがポインタ150によりドラッグされ、状態Dを示すステート枠134にドロップされた場合、リンクファイルがドロップされたと判定され、その処理は、ステップS68に進む。
For example, when the icon displayed as “temple” displayed on the link
ステップS68において、スクリプト編集部33は、リンクファイルがドロップされたステート枠のステートを編集対象ステートに設定する。すなわち、今の場合、編集対象ステートは、ステート枠134で示される状態Dが設定される。
In step S68, the
ステップS69において、スクリプト編集部33は、開始フレームを指定するためのダイアログボックスを表示する。すなわち、このダイアログボックスは、例えば、図8で示されるようなものである。図8において、ダイアログボックス151が表示されている。ダイアログボックス151の上部には、オブジェクト名表示欄152が設けられており、リンクファイルのファイル名が表示される。今の場合、「temple」と表示される。
In step S69, the
オブジェクト名表示欄151の下には、開始位置指定欄154が設けられており、チェックボタン153がチェックされているとき、表示開始位置を示す情報をドロップダウンボタン154aを操作して設定する。ドロップダウンボタン154が押下されると、例えば、「Start」または「end」といった「temple」の動画の開始位置を指定する。また、チェックボタン155がチェックされると、アップボタン156a、およびダウンボタン156bを操作して直接フレーム番号指定欄156により開始フレーム番号を指定することができる。尚、図8において、「1≦Frame Number≦10」とあるのは、全部でフレーム数が10枚であった場合の例が示されており、開始フレーム番号としては、その範囲内で選択できることを示している。従って、「1≦Frame Number≦10」の記述は、そうフレーム数により変更するものである。
Below the object
さらに、その下には、左側に「OK」ボタン157が設けられ、設定した内容に更新するよう指示するとき操作部111により操作される。同様に、右側に「Cancel」ボタン157が設けられ、設定した内容に更新しないように指示するとき操作部111により操作される。
In addition, an “OK”
ステップS70において、スクリプト編集部33は、開始フレームが設定されたか否かを判定し、設定されるまで、その処理を繰り返す。例えば、開始フレームが設定されたと判定された場合、スクリプト編集部33は、ステートデータ格納部13にアクセスし、編集対象ステートのステート情報を読み出し、編集対象ステートのドロップされたリンクファイルの情報に基づいて、編集対象ステートのスクリプトを更新する。すなわち、上述したように、「temple」というアニメーション動画がドロップされると、例えば、図9で示されるようにスクリプトが更新される。図9においては、「Exit /_esroot.temple.hide();_esroot.temple.stop();」および「Entry /_esroot.temple.show();_esroot.temple.gotoAndPlay();」と記述されており、状態Dの動作を終了するときには、「temple」というリンクファイルのアニメーションの表示を隠して、停止させることが示されており、状態Dの動作を開始するときには、「temple」というリンクファイルを表示し、アニメーションの再生を開始させることが示されている。
In step S70, the
ステップS66において、リンクファイルが選択されなかった場合、その処理は、ステップS61に戻り、それ以降の処理が繰り返される。 If the link file is not selected in step S66, the process returns to step S61, and the subsequent processes are repeated.
以上の処理により、スクリプト表示画面115に直接スクリプトを入力するか、または、リンクファイルを直接ドラッグして、編集対象ステートにドロップすることにより、スクリプトが編集される。
Through the above processing, the script is edited by inputting the script directly on the
次に、図10のフローチャートを参照して、状態遷移プログラム実行処理について説明する。 Next, the state transition program execution process will be described with reference to the flowchart of FIG.
ステップS91において、状態遷移エンジン16は、操作部11より送信されてくる操作信号に基づいて、状態遷移図表示画面114上のいずれかのステートが選択されたか否かを判定し、選択されるまで、その処理を繰り返す。より詳細には、状態遷移エンジン16は、操作部11より供給されてくる信号に基づいて、例えば、図2の状態遷移図表示画面114上のステート枠131乃至134のいずれかが、ポインタ150により選択されたか否かを判定し、いずれかのステートが選択されるまで、その処理を繰り返す。
In step S91, the
ステップS91において、例えば、いずれかのステートが選択された場合、ステップS92において、状態遷移エンジン16は、選択されたステートをカレントステートとして設定する。すなわち、状態遷移エンジン16は、操作部11からの信号に基づいて、例えば、図2の状態遷移図表示画面114上のステート枠131乃至134のうち、ポインタ150により選択されたステート枠に対応するステートをカレントステートに設定する。また、このとき、状態遷移エンジン16は、カレントステートがいずれのステートであるかを示す情報を状態遷移図生成部15に供給する。この情報により、図11のフローチャートを参照して、後述する状態遷移図生成処理においてカレントステートのステート枠の表示色を変えて表示させる。
In step S91, for example, when any state is selected, in step S92, the
ステップS93において、状態遷移エンジン16は、ステートデータ格納部13にアクセスし、カレントステートのステート情報を読み出し、状態動作実行部17に供給する。
In step S <b> 93, the
ステップS94において、状態動作実行部17は、供給されたカレントステートのステート情報を解釈する。すなわち、状態動作実行部17は、供給されたカレントステートのステート情報のうち、特に、スクリプト情報を読み出して、その状態における動作を認識する。
In step S94, the state
ステップS95において、状態動作実行部17は、ステート情報により解釈された動作において、リンクファイルが設定されているか否かを判定する。
In step S95, the state
ステップS95において、例えば、リンクファイルが設定されていると判定された場合、ステップS96において、状態動作実行部17は、開始フレームを検索する。すなわち、状態動作実行部17は、リンクデータ格納部14にアクセスし、リンクファイルとして設定されているリンクファイルを読み出し、スクリプトに記述されている開始フレームの情報(位置、または、フレーム番号)に基づいて、開始フレームを検索する。
In step S95, for example, when it is determined that a link file is set, in step S96, the state
ステップS97において、状態動作実行部17は、検索された開始フレームからリンクファイルであるアニメーションファイルの再生を開始する。このとき、状態動作実行部17は、再生したアニメーションの画像情報を表示制御部18に供給する。
In step S97, the state
一方、ステップS95において、リンクファイルがないと判定された場合、ステップS98において、スクリプト情報に記述されている処理を実行する。尚、ここでは、スクリプト情報に記述されている処理とは、リンクファイルを再生する処理以外のものが実行されることを示している。 On the other hand, if it is determined in step S95 that there is no link file, the process described in the script information is executed in step S98. Here, the process described in the script information indicates that a process other than the process of reproducing the link file is executed.
ステップS99において、状態動作実行部17は、状態遷移処理の終了が指示されたか否かを判定する。すなわち、状態動作実行部17は、操作部11からの信号に基づいて、状態遷移処理の終了が指示されたか否かを判定し、終了が指示されていない場合、その処理は、ステップS100に進む。
In step S99, the state
ステップS100において、状態遷移エンジン16は、イベントが発生したか否かを判定する。すなわち、状態遷移エンジン16は、イベント検出部20により検出されたイベントの情報が供給されてきたか否かを判定し、イベントがない場合、その処理は、ステップS95に戻り、以降の処理が繰り返される。すなわち、イベントが検出されるまで、ステップS95乃至S100の処理が繰り返される。一方、ステップS100において、イベントがあると判定された場合、その処理は、ステップS101に進む。
In step S100, the
ステップS101において、状態遷移エンジン16は、供給されてきたイベントの情報により遷移先が設定されているか否かを判定する。すなわち、ステート情報が、図3で示されるものであって、現在の状態がステートAであった場合、例えば、イベントとして、操作部11のキーボードのうち「A」のキーが操作されるというイベントが発生したとしても、遷移先が設定されていないことになる。このため、このような場合、その処理は、ステップS95に戻る。すなわち、実質的に、イベントの発生がなかったものとして処理される。
In step S101, the
一方、ステップS101において、遷移先があると判定された場合、すなわち、ステート情報が、図3で示されるものであって、現在の状態がステートAであった場合、例えば、イベントとして、操作部11のキーボードのうち「2」のキーが操作されるというイベントが発生すると、遷移先Bに設定されている。そこで、ステップS102において、状態遷移エンジン16は、遷移先のステートをカレントステートに設定し、その処理は、ステップS93に戻り、それ以降の処理が繰り返される。すなわち、この処理により、新たな遷移先となるステートBをカレントステートに設定し、ステップS93以降の処理が繰り返される。
On the other hand, if it is determined in step S101 that there is a transition destination, that is, if the state information is as shown in FIG. 3 and the current state is state A, for example, as an event, the operation unit When an event occurs in which the “2” key of 11 keyboards is operated, the transition destination B is set. Therefore, in step S102, the
以上の処理により、状態遷移エンジン16が、イベント検出部20より供給されてくるイベントの情報により状態遷移図に従って状態を変化させると共に、対応する状態のステート情報を読み出して、状態動作実行部17に供給することが可能となる。また、状態動作実行部17は、ユーザの操作に基づいて設定されている状態を変化させると共に、状態動作実行部17は、対応する状態においてスクリプトで規定される動作を実行することが可能となる、
As a result of the above processing, the
次に、図11のフローチャートを参照して、状態遷移図生成処理について説明する。 Next, state transition diagram generation processing will be described with reference to the flowchart of FIG.
ステップS121において、状態遷移図生成部15は、ステートデータ格納部13にアクセスし、格納されている全ステートデータを読み出す。
In step S121, the state transition
ステップS122において、ステート枠生成部42は、全てのステート情報毎に状態遷移図上のステート枠を生成すると共に、スクリプト情報に基づいて、全スクリプトの記述内容をステート枠内に記述する。
In step S122, the state
ステップS123において、トランジション付加部43は、ステート情報のうち、イベントと対応する遷移先の情報に基づいて、トランジションを生成する。
In step S123, the
ステップS124において、リンクファイル付きステート検索部44は、全ステート情報におけるスクリプト情報のうち、リンクファイルが設定されているステートを検索し、検索結果をアイコン付加部43に供給する。
In step S <b> 124, the link file
ステップS125において、アイコン付加部43は、リンクファイル付きステート検索部44より供給された、リンクファイルが設定されたステートのステート枠内にアイコンを付加する。
In step S125, the
ステップS126において、ステート枠生成部41は、カレントステートが指定されているか否かを判定し、例えば、カレントステートが選択されていた場合、その処理は、ステップS127に進む。
In step S126, the state
ステップS127において、ステート枠生成部41は、カレントステートに設定されているステートのステート枠内の表示色を他のステート枠の表示色と異なる表示色に指定する。
In step S127, the state
ステップS128において、状態遷移図生成部15は、ステート枠生成部41により生成されたステート枠、トランジション生成部42により生成されたトランジションに基づいて、状態遷移図を構成する情報を生成し、表示制御部18に供給する。
In step S128, the state transition
一方、ステップS126において、カレントステートが設定されていない場合、ステップS127の処理はスキップされる。 On the other hand, if the current state is not set in step S126, the process of step S127 is skipped.
以上の処理により、ステートデータ格納部13に格納されているステート情報に基づいて、状態遷移図が生成され、表示制御部18に供給することが可能となる。また、リンクファイルが設定されているステート枠内にはリンクファイルが存在することを示すアイコンが含まれることになるので、図12を参照して後述する表示処理により表示部19に表示される状態遷移図表示画面114において、ステート枠内にアイコンとして表示されることになるので、リンクファイルの有無を容易に認識することが可能となる。また、例えば、ステップS92(図10)のような処理により、カレントステートが設定されている場合、カレントステートが設定されたステート枠の表示色が、他のステート枠と異なる表示色となるため、カレントステートを容易に認識することが可能となる。
With the above processing, a state transition diagram is generated based on the state information stored in the state
次に、図12のフローチャートを参照して、表示処理について説明する。 Next, display processing will be described with reference to the flowchart of FIG.
ステップS141において、状態遷移図表示制御部52は、状態遷移図生成部15より供給されてくる状態遷移図の情報に基づいて、状態遷移図表示画面114を表示する。
In step S141, the state transition diagram
ステップS142において、ステートリスト表示制御部53は、ステートデータ格納部13にアクセスし、格納されているステート情報に基づいて、ステートリストを生成し、ステートリスト表示画面111を表示する。
In step S142, the state list
ステップS143において、リンクリスト表示制御部54は、リンクデータ格納部14にアクセスし、リンクファイルとして使用可能なファイルを読み出してリンクリスト表示画面112を生成して表示する。
In step S143, the link list
ステップS144において、状態動作表示制御部55は、状態遷移図生成部15より供給される情報に基づいて、カレントステートが指定されているか否かを判定する。ステップS144において、例えば、カレントステートが指定されていると判定された場合、ステップS145において、状態動作表示制御部55は、カレントステートとして設定されている、状態動作実行部17により実行されている動作内容に基づいて動作表示画面113を表示する。
In step S144, the state operation
ステップS146において、スクリプト表示制御部51は、ステートデータ格納部13にアクセスし、カレントステートに指定されているステート情報のうち、スクリプト情報を読み出して表示し、その処理は、ステップS141に戻る。
In step S146, the script
ステップS144において、カレントステートが指定されていない場合、ステップS145,S146の処理は、スキップされる。 If the current state is not designated in step S144, the processes in steps S145 and S146 are skipped.
以上の処理により、図2で示されるような、ステートリスト画面111、リンクリスト画面112、動作表示画面113、状態遷移図表示画面114、およびスクリプト画面115からなる表示画面101が表示部19に表示される。
Through the above processing, the
以上、図4の状態遷移プログラム編集処理、図5のステート編集処理、図6のトランジション編集処理、図7のスクリプト編集処理、図10の状態遷移プログラム実行処理、図11の状態遷移図生成処理、図12の表示処理により以下のような動作が実現される。 The state transition program editing process in FIG. 4, the state editing process in FIG. 5, the transition editing process in FIG. 6, the script editing process in FIG. 7, the state transition program execution process in FIG. 10, the state transition diagram generation process in FIG. The following operations are realized by the display process of FIG.
例えば、図2におけるリンクリスト画像112の「temple」で示されるリンクファイルがドラッグされ、ステート枠134で示される状態D(State D)上でドロップされると、図4におけるステップS5において、スクリプト処理が実行されたものと判定され、ステップS6で示されるスクリプト編集処理が実行される。
For example, when the link file indicated by “temple” in the
さらに、図7のスクリプト編集処理におけるステップS61の処理において、既存のステートが編集されていないと判定されるので、ステップS66において、リンクファイルが選択されたと判定され、さらに、ステップS67において、リンクファイルがいずれかのステート枠内にドラッグアンドドロップされたと判定される。 Furthermore, since it is determined in step S61 in the script editing process of FIG. 7 that the existing state has not been edited, it is determined in step S66 that a link file has been selected, and in step S67, the link file is selected. Is dragged and dropped into one of the state frames.
また、ステップS68において、リンクファイルがドロップされたステートが編集対象ステートに設定され、ステップS69において、図8で示されるような開始フレームを指定するためのダイアログボックスが表示され、ステップS70において、開始フレームが指定されたと判定されると、ステップS71において、ドロップされたリンクファイルの情報に基づいて、編集対象ステートのステート情報が更新される。この結果、図9で示されるようにステート情報におけるスクリプトが、状態Dに遷移されるとき、ドロップされたリンクファイルの再生が開始され、状態Dから他の状態に遷移されるとき、ドロップされたリンクファイルの再生が停止されるような記述に更新される。 In step S68, the state in which the link file is dropped is set as the editing target state. In step S69, a dialog box for designating a start frame as shown in FIG. 8 is displayed. In step S70, the start is started. If it is determined that the frame is designated, in step S71, the state information of the edit target state is updated based on the information of the dropped link file. As a result, as shown in FIG. 9, when the script in the state information transitions to the state D, the reproduction of the dropped link file is started, and when the script is transitioned from the state D to another state, the script is dropped. The description is updated so that playback of the link file is stopped.
さらに、この状態で、ステート枠134が選択された状態となるため、図10のステップS91において、ステートが選択されたと判定され、ステップS92において、選択されたステート、すなわち、状態Dがカレントステートに設定される。
Furthermore, since the
また、ステップS93において、カレントステートである状態Dのステート情報が読み出され、ステップS94において、カレントステートのステート情報が解釈される。さらに、ステップS95において、リンクファイルがあると判定されるので、ステップS96において、開始フレームが検索されて、開始フレームよりリンクファイルである「temple」のアニメーションの再生が開始される。 In step S93, the state information of state D, which is the current state, is read, and in step S94, the state information of the current state is interpreted. Furthermore, since it is determined in step S95 that there is a link file, a start frame is searched in step S96, and reproduction of an animation of “temple” that is a link file is started from the start frame.
さらに、この状態で、図11の状態遷移図生成処理のステップS124において、スクリプトに基づいてリンクファイルが設定されているステートとして状態Dが検索され、ステップS125において、検索された状態Dのステート枠134内にリンクファイルが設定されていることを示すアイコンが付加され、ステップS127において、カレントステートであるステート枠134が他のステート枠とは別の表示色に設定される。
Further, in this state, in step S124 of the state transition diagram generation process of FIG. 11, the state D is searched as a state in which the link file is set based on the script. In step S125, the state frame of the searched state D is searched. An icon indicating that a link file is set is added in 134, and in step S127, the
また、図12の表示処理のステップS141においては、図13の状態遷移図表示画面114で示されるように、ステート枠134内には、スクリプトDである「Exit /_esroot.temple.hide();_esroot.temple.stop();」、および「Entry /_esroot.temple.show();_esroot.temple.gotoAndPlay();」が記述されると共に、リンクファイルが設定されていることを示すアイコン134aが表示される。また、カレントステートである状態Dを示すステート枠134は、他のステート枠とは異なる表示色が表示される。
Also, in step S141 of the display process of FIG. 12, as shown in the state transition
さらに、ステップS145において、カレントステートの状態動作が、動作表示画面113に表示される。図13においては、リンクファイル「temple」が再生されていることが示されている(寺社の画像が表示されている)。
Further, in step S145, the state operation in the current state is displayed on the
また、ステップS146において、スクリプトDの情報が、スクリプト画面115に表示される。図13においては、「Exit /_esroot.temple.hide();_esroot.temple.stop();」、および「Entry /_esroot.temple.show();_esroot.temple.gotoAndPlay();」が表示され、ポインタ150を移動させることで、編集することが可能である。
In step S146, the script D information is displayed on the
また、図14は、上述の操作と同様の操作により、状態A,Cを示すステート枠131,133にそれぞれ「forest」、および「flower」がドラッグアンドドロップされた後の状態が示されている。 FIG. 14 shows a state after “forest” and “flower” are dragged and dropped in the state frames 131 and 133 indicating the states A and C, respectively, by the same operation as described above. .
ステート枠131には、「Exit /_esroot.forest.hide();_esroot.forest.stop();」、および「Entry /_esroot.forest.show();_esroot.forest.gotoAndPlay();」と表示され、さらに、リンクファイルが存在することを示すアイコン131aが表示されている。また、同様に、ステート枠133には、「Exit /_esroot.flower.hide();_esroot.flower.stop();」、および「Entry /_esroot.flower.show();_esroot.flower.gotoAndPlay();」と表示され、さらに、リンクファイルが存在することを示すアイコン133aが表示されている。
The
さらに、図14においては、ポインタ150が、ステート枠133上に存在し、カレントステートとして設定されいるため、ステート枠133は他のステート枠とは表示色が異なっている。また、スクリプト表示画面115には、ステート枠133に記述されているスクリプトが表示されている。
Further, in FIG. 14, since the
また、動作表示画面113には、カレントステートである状態Cにおいて再生されるリンクファイル「flower」が再生されることが示されている。
In addition, the
さらに、図14の状態で、「flower2」で示されるアイコンが、状態Bのステート枠132上にドラッグアンドドロップされると、図7のステップS69の処理により、図15で示されるようなダイアログボックスが表示され、例えば、30フレーム目から再生を開始させるようにする場合、図15で示されるように、チェックボタン155’がチェックされ、フレーム番号指定欄156’に「30」が入力され、「OK」ボタン157が操作される。
Furthermore, in the state of FIG. 14, when the icon indicated by “flower2” is dragged and dropped onto the
このため、図16で示されるように、ステート枠132で示されるように、「Exit /_esroot.flower2.hide();_esroot.flower2.stop();」、および「Entry /_esroot.flower2.show();_esroot.flower2.gotoAndPlay();」と表示され、さらに、リンクファイルが存在することを示すアイコン132aが表示されている。
Therefore, as shown in FIG. 16, as shown in the
さらに、図16においては、ステート枠132が、カレントステートとして設定されいるため、ステート枠132は他のステート枠とは表示色が異なっている。また、スクリプト表示画面115には、ステート枠132に記述されているスクリプトが表示されており、動作表示画面115には、「flower2」のリンクファイルに対応するアニメーション画像が表示されている。
Further, in FIG. 16, since the
以上の処理により、図17で示されるように、ステートデータ格納部13に格納されている各ステート毎のステート情報は、スクリプトA乃至Dは、図15の状態遷移図表示画面114で示される状態遷移図が記述されるように更新されることになる。
As a result of the above processing, as shown in FIG. 17, the state information for each state stored in the state
ここで、図17においては、左から状態A乃至Dのステート情報が示されている。尚、イベントおよび遷移先については、図3における場合と同様である。 Here, in FIG. 17, state information of states A to D is shown from the left. The event and the transition destination are the same as those in FIG.
すなわち、状態A(State A)のスクリプトAは、「Exit /_esroot.forest.hide();_esroot.forest.stop();」、および「Entry /_esroot.forest.show();_esroot.forest.gotoAndPlay();」であり、状態B(State B)のスクリプトBは、「Exit /_esroot.flower2.hide();_esroot.flower2.stop();」、および「Entry /_esroot.flower2.show();_esroot.flower2.gotoAndPlay();」であり、状態C(State C)のスクリプトCは、「Exit /_esroot.flower.hide();_esroot.flower.stop();」、および「Entry /_esroot.flower.show();_esroot.flower.gotoAndPlay();」であり、状態D(State D)のスクリプトDは、「Exit /_esroot.temple.hide();_esroot.temple.stop();」、および「Entry /_esroot.temple.show();_esroot.temple.gotoAndPlay();」である。 That is, the script A in the state A (State A) is “Exit /_esroot.forest.hide (); _ esroot.forest.stop ();” and “Entry /_esroot.forest.show();_esroot.forest. gotoAndPlay (); "and the script B in State B is" Exit /_esroot.flower2.hide (); _ esroot.flower2.stop (); "and" Entry /_esroot.flower2.show ( ); _ esroot.flower2.gotoAndPlay (); ", and the script C in the state C (State C) is" Exit /_esroot.flower.hide (); _ esroot.flower.stop (); "and" Entry / _esroot.flower.show (); _ esroot.flower.gotoAndPlay (); ", and the script D of the state D (State D) is" Exit /_esroot.temple.hide (); _ esroot.temple.stop (); " And “Entry /_esroot.temple.show (); _ esroot.temple.gotoAndPlay ();”.
以上の処理により、状態遷移図上で、リンクファイルをドラッグアンドドロップさせるだけで、ステート(状態)における、リンクファイルを再生させるという動作を指定するスクリプトを設定させることが可能となる。また、リンクファイルが存在する場合、ステート枠内にリンクファイルの存在を示すアイコンが表示されることになるので、状態遷移図表示画面114における各ステート枠を見るだけで、リンクファイルの有無を認識することが可能となる。
With the above processing, it is possible to set a script that designates an operation for reproducing a link file in a state (state) by simply dragging and dropping the link file on the state transition diagram. If a link file exists, an icon indicating the existence of the link file will be displayed in the state frame, so the presence or absence of the link file can be recognized simply by looking at each state frame on the state transition
以上においては、リンクファイルが設定されているステート枠内にリンクファイルが設定されていることを示すアイコンを表示させる例について説明してきたが、リンクファイルが設定されているステート枠内で、リンクファイルであるアニメーションを再生させたり、または、アニメーションの代表画面を表示させるようにしてもよい。 In the above, an example of displaying an icon indicating that a link file is set in the state frame in which the link file is set has been described. However, in the state frame in which the link file is set, the link file is displayed. The animation may be reproduced or a representative screen of the animation may be displayed.
図18は、リンクファイルが設定されているステート枠内で、リンクファイルであるアニメーションを再生させるようにした状態遷移プログラム編集装置1の一実施の形態の構成を示す図である。
FIG. 18 is a diagram illustrating a configuration of an embodiment of the state transition
図18の状態遷移プログラム編集装置1において、図1の状態遷移プログラム編集装置1と異なる点は、状態遷移図生成部15におけるアイコン付加部43に代えて、状態動作実行部201を設けた点であり、操作部11乃至リンクデータ格納部14、および、状態遷移エンジン16乃至表示部19は、図1と同様のものである。尚、図18において、図1と同一の機能を備えた構成については、同一の符号を付しており、その説明は適宜省略するものとする。
The state transition
状態動作実行部201は、状態動作実行部17と基本的に同様のものであり、リンクファイル付ステート検索部44により検索されたステートのステート情報を読み出し、スクリプトを解釈して実行する。さらに、状態動作実行部201は、実行結果をステート枠内に表示させる画面を生成する。
The state
次に、図19のフローチャートを参照して、図18の状態遷移プログラム編集装置1による状態遷移図生成処理について説明する。尚、図19におけるステップS161乃至S163、およびステップS169乃至S171の処理は、図11のフローチャートにおけるステップS121乃至123、およびステップS126乃至S128の処理と同様であるので、その説明は省略する。
Next, the state transition diagram generation processing by the state transition
ステップS164においては、リンクファイル付きステート検索部44は、全ステート情報におけるスクリプト情報のうち、リンクファイルが設定されているステートを検索し、検索結果を状態動作実行部201に供給する。
In step S164, the link file
ステップS165において、状態動作実行部201は、ステートデータ格納部13にアクセスし、リンクファイルが設定されているステートのステート情報を読み出す。
In step S165, the state
ステップS166において、状態動作実行部201は、読み出したリンクファイルが設定されているステートのステート情報のうちスクリプト情報を解釈する。
In step S166, the state
ステップS167において、状態動作実行部201は、リンクファイルが設定されている各ステートの開始フレームの情報を検索する。
In step S167, the state
ステップS168において、状態動作実行部201は、リンクファイルが設定されている各ステート毎の開始フレームからリンクファイルであるアニメーションの再生を開始する。
In step S168, the state
以上の処理により、表示部19には、例えば、図20で示されるような表示画面101が表示される。すなわち、表示画面101の状態遷移図表示画面114には、状態A乃至Dに対応するステート枠171乃至174が表示されている。ステート枠171乃至174には、それぞれのステートに対応するアニメーションが表示されている。図20においては、花の画像上に「ABC」、「DEF」、「GHI」、および「JKL」の選択ボタンが表示されており、それぞれの表示ボタンが選択されると、他のボタンと異なる表示色で表示される。すなわち、図20の場合、ステート枠171においては、「ABC」の選択ボタンが異なる表示色で表示されており、ステート枠172においては、「DEF」の選択ボタンが異なる表示色で表示されており、ステート枠173においては、「GHI」の選択ボタンが異なる表示色で表示されており、ステート枠174においては、「JKL」の選択ボタンが異なる表示色で表示されている。
Through the above processing, for example, a
結果として、それぞれの状態において、リンクファイルが設定されていると、対応するアニメーションの表示が開始されることになるので、リンクファイルの設定の有無を認識することが可能になると共に、ステートごとにどのようなリンクファイルが設定され、実際には、どのようなアニメーションが再生されるのかを把握しながら、状態遷移プログラムを編集することが可能となる。尚、図18の状態遷移プログラム編集装置1における状態遷移プログラム編集処理、編集処理、トランジション編集処理、スクリプト編集処理、状態遷移プログラム実行処理、および、表示処理については、図1の状態遷移プログラム編集装置1における処理と同様であるので、その説明は省略する。
As a result, if a link file is set in each state, the display of the corresponding animation starts, so it is possible to recognize whether the link file is set and for each state. It is possible to edit the state transition program while grasping what link file is set and what kind of animation is actually reproduced. 18 for the state transition program editing process, editing process, transition editing process, script editing process, state transition program execution process, and display process in the state transition
以上においては、全てのリンクファイルが設定されているステート枠内に、設定されているリンクファイルを再生させるようにした例について説明してきたが、複数の動画処理を並列的に実行させる必要があるため、ハードウェアに過大な負荷が掛かる可能性がある。そこで、カレントステートの遷移先となるステートにリンクファイルが設定されている場合にのみ、そのステート枠内に実行結果を表示させるようにしてもよい。 In the above description, an example in which a set link file is played in a state frame in which all link files are set has been described. However, it is necessary to execute a plurality of moving image processes in parallel. Therefore, an excessive load may be applied to the hardware. Therefore, the execution result may be displayed in the state frame only when a link file is set in the state that is the transition destination of the current state.
図21は、カレントステートの遷移先となるステートにリンクファイルが設定されている場合にのみ、そのステート枠内に実行結果を表示させるようにした状態遷移プログラム編集装置1の一実施の形態の構成を示す図である。図21の状態遷移プログラム編集装置において、図18の状態遷移プログラム編集装置1と異なる点は、リンクファイル付ステート検索部44、および、状態動作実行部201に代えて遷移先ステート検索部211、および、状態動作実行部212を備えている点であり、操作部11乃至リンクデータ格納部14、および、状態遷移エンジン16乃至表示部19は、図1,図18と同様のものである。尚、図21において、図1と同一の機能を備えた構成については、同一の符号を付しており、その説明は適宜省略するものとする。
FIG. 21 shows a configuration of an embodiment of the state transition
遷移先ステート検索部211は、ステートデータ格納部13にアクセスし、カレントステートのステート情報を読み出して、トランジション情報から遷移先を検索し、読み出した遷移先のステートを状態動作実行部212に供給する。
The transition destination
状態動作実行部212は、状態動作実行部201と基本的に同様のものであり、遷移先ステート検索部211により検索されたステートのステート情報を読み出し、スクリプトを解釈して実行する。さらに、状態動作実行部212は、実行結果をステート枠内に表示させる画面を生成する。
The state
次に、図22のフローチャートを参照して、図21の状態遷移プログラム編集装置1による状態遷移図生成処理について説明する。尚、図22のフローチャートにおけるステップS191乃至S194、およびステップS200の処理は、図19におけるステップS161乃至S163,S169,S170の処理と同様であるのでその説明は適宜省略する。
Next, the state transition diagram generation processing by the state transition
ステップS195においては、遷移先ステート検索部211は、全ステート情報におけるトランジション情報のうち、カレントステートに対して、遷移先となるステートを検索し、検索結果を状態動作実行部201に供給する。
In step S <b> 195, the transition destination
ステップS196において、状態動作実行部212は、ステートデータ格納部13にアクセスし、カレントステートに対して、遷移先となるステートのうち、リンクファイルが設定されているステートのステート情報を読み出す。
In step S196, the state
ステップS197において、状態動作実行部212は、カレントステートに対して、遷移先となるステートのうち、リンクファイルが設定されているステートのステート情報のうちスクリプト情報を解釈する。
In step S197, the state
ステップS198において、状態動作実行部212は、カレントステートに対して、遷移先となるステートのうち、リンクファイルが設定されている各ステートの開始フレームの情報を検索する。
In step S198, the state
ステップS199において、状態動作実行部212は、カレントステートに対して、遷移先となるステートのうち、リンクファイルが設定されている各ステート毎の開始フレームからリンクファイルであるアニメーションの再生を開始する。
In step S199, the state
以上の処理により、図23で示されるように、表示画面101の状態遷移図表示画面114には、状態A乃至Dに対応するステート枠251乃至254が表示される。図23においては、状態Bを示すステート枠252が、他のステート枠と異なる表示色で表示され、カレントステートであることが示されている。状態Bの遷移先は、状態A,Cである。以上の処理により、遷移先である状態A,Cのステート枠251,253には、それぞれのステートに対応するアニメーションが表示されている。図23のステート枠251,253においては、花の画像上に「ABC」、「DEF」、「GHI」、および「JKL」と記述された選択ボタン251a乃至251dおよび253a乃至253dが表示されており、それぞれの選択ボタンが選択されると、他のボタンと異なる表示色で表示される。すなわち、図23の場合、ステート枠251においては、「ABC」の選択ボタン251aが異なる表示色で表示されており、ステート枠253においては、「GHI」の選択ボタン253cが異なる表示色で表示されている。また、図23においては、カレントステートである状態Bのステート枠252、および、カレントステートの遷移先とならない状態Dのステート枠254については、動作結果が表示されず、スクリプトが表示されるのみである。
Through the above processing, as shown in FIG. 23, the state frames 251 to 254 corresponding to the states A to D are displayed on the state transition
結果として、それぞれの状態において、カレントステートの遷移先のステート枠内では、リンクファイルが設定されていると、対応するアニメーションが表示されることになるので、リンクファイルの設定の有無を認識することが可能になると共に、ステートごとにどのようなリンクファイルが設定され、実際には、遷移先のステートで、どのようなアニメーションが再生されるのかを把握しながら状態遷移プログラムを編集することが可能となる。しかもその際、実行結果は、遷移先となるステートのみで表示されることになるので、実行処理に掛かる負荷を低減させることが可能となる。 As a result, in each state, if a link file is set in the state frame that is the transition destination of the current state, the corresponding animation will be displayed, so recognize the presence or absence of the link file setting. It is possible to edit the state transition program while grasping what kind of link file is set for each state, and in fact what kind of animation is played in the transition destination state. It becomes. In addition, since the execution result is displayed only in the state that is the transition destination, the load on the execution process can be reduced.
尚、図21の状態遷移プログラム編集装置1における状態遷移プログラム編集処理、編集処理、トランジション編集処理、スクリプト編集処理、状態遷移プログラム実行処理、および、表示処理については、図1の状態遷移プログラム編集装置1における処理と同様であるので、その説明は省略する。
The state transition program editing process, the editing process, the transition editing process, the script editing process, the state transition program execution process, and the display process in the state transition
以上においては、カレントステートの遷移先となるステートのステート枠内でリンクファイルが設定されている場合、リンクファイルであるアニメーションを再生させる例について説明してきたが、編集中にポインタを移動させて、ポインタの存在するステート枠内のステートの実行結果のみを表示させるようにしてもよい。 In the above, an example of playing an animation that is a link file when a link file is set in the state frame of the state that is the transition destination of the current state has been explained, but by moving the pointer during editing, Only the execution result of the state within the state frame where the pointer exists may be displayed.
図24は、ポインタの存在するステート枠内のステートの実行結果のみを表示させるようにした状態遷移プログラム編集装置1の一実施の形態の構成を示す図である。図24の状態遷移プログラム編集装置1において、図21の状態遷移プログラム編集装置1と異なる点は、遷移先ステート検索部211、および、状態動作実行部212に代えてマウスオーバステート検索部271、および、状態動作実行部272を備えている点であり、操作部11乃至リンクデータ格納部14、および、状態遷移エンジン16乃至表示部19は、図1,図18と同様のものである。尚、図21において、図1と同一の機能を備えた構成については、同一の符号を付しており、その説明は適宜省略するものとする。
FIG. 24 is a diagram showing a configuration of an embodiment of the state transition
マウスオーバステート検索部271は、操作部11からの情報に基づいて、ポインタ150が存在するステート枠に対応するステートを検索し、状態動作実行部212に供給する。
Based on the information from the
状態動作実行部272は、状態動作実行部211と基本的に同様のものであり、マウスオーバステート検索部271により検索されたステートのステート情報を読み出し、スクリプトを解釈して実行する。さらに、状態動作実行部272は、実行結果をステート枠内に表示させる画面を生成する。
The state operation execution unit 272 is basically the same as the state
次に、図25のフローチャートを参照して、図24の状態遷移プログラム編集装置1による状態遷移図生成処理について説明する。尚、図25のフローチャートにおけるステップS221乃至S224、およびステップS230,S231の処理は、図22におけるステップS191乃至S193,S199,S200の処理と同様であるのでその説明は適宜省略する。
Next, a state transition diagram generation process by the state transition
ステップS224において、マウスオーバステート検索部272は、操作部11からの信号に基づいて、ポインタ150が存在するステート枠に対応するステート(マウスオーバステート)を検索し、存在するか否かを判定する。ステップS224において、ステップS224において、例えば、存在すると判定された場合、ステップS225において、マウスオーバステート検索部271は、ポインタ150が存在するステートを検索し、検索結果を状態動作実行部272に供給する。
In step S224, the mouse over state search unit 272 searches the state (mouse over state) corresponding to the state frame in which the
ステップS226において、状態動作実行部272は、ステートデータ格納部13にアクセスし、マウスオーバステートのうち、リンクファイルが設定されているステートのステート情報を読み出す。
In step S226, the state operation execution unit 272 accesses the state
ステップS227において、状態動作実行部272は、マウスオーバステートのうち、リンクファイルが設定されているステートのステート情報のうちスクリプト情報を解釈する。 In step S227, the state operation execution unit 272 interprets the script information in the state information of the state in which the link file is set in the mouse over state.
ステップS228において、状態動作実行部272は、マウスオーバステートのうち、リンクファイルが設定されている各ステートの開始フレームの情報を検索する。 In step S228, the state operation execution unit 272 searches the mouse over state for information on the start frame of each state in which the link file is set.
ステップS229において、状態動作実行部272は、マウスオーバステートのうち、リンクファイルが設定されている各ステート毎の開始フレームからリンクファイルであるアニメーションの再生を開始する。 In step S229, the state operation execution unit 272 starts playing the animation that is the link file from the start frame for each state in which the link file is set in the mouse over state.
以上の処理により、図26で示されるように、表示画面101の状態遷移図表示画面114には、状態A乃至Dに対応するステート枠291乃至294が表示される。図26においては、ポインタ150が存在するステート枠291には、そのステートに対応するアニメーションが表示されている。図26のステート枠291においては、花の画像上にそれぞれ「ABC」、「DEF」、「GHI」、および「JKL」と記述された選択ボタン291a乃至dが表示されており、それぞれの表示ボタンが選択されると、他のボタンと異なる表示色で表示される。すなわち、図26の場合、ステート枠291においては、「ABC」の選択ボタン291aが異なる表示色で表示されている。
Through the above processing, as shown in FIG. 26, state frames 291 to 294 corresponding to states A to D are displayed on the state transition
結果として、ポインタ150がステート枠内に存在する場合、リンクファイルが設定されていると、対応するアニメーションが表示されることになるので、リンクファイルの設定の有無を認識することが可能になると共に、ステートごとにどのようなリンクファイルが設定され、実際には、遷移先のステートで、どのようなアニメーションが再生されるのかを把握しながら状態遷移プログラムを編集することが可能となる。また、実行結果は、ポインタ150が存在するステートのみで表示されることになるので、実行処理に掛かる負荷を低減させるだけでなく、ハードウェアに対して必要最低限の負荷で、任意のステートについて実行結果を認識することが可能となる。
As a result, when the
尚、図24の状態遷移プログラム編集装置1における状態遷移プログラム編集処理、編集処理、トランジション編集処理、スクリプト編集処理、状態遷移プログラム実行処理、および、表示処理については、図1の状態遷移プログラム編集装置1における処理と同様であるので、その説明は省略する。
Note that the state transition program editing process, the editing process, the transition editing process, the script editing process, the state transition program execution process, and the display process in the state transition
また、以上においては、全てのステート枠、遷移先となるステートのステート枠、またはポインタが存在するステート枠において、アニメーションの表示を開始させる例について説明してきたが、代表画面のみを表示させるようにしてもよく、このようにすることにより、画像処理に係る処理負荷をさらに低減させるようにすることが可能となる。 In the above description, the example of starting the animation display in all the state frames, the state frame of the transition destination state, or the state frame where the pointer exists has been described. However, only the representative screen is displayed. In this case, the processing load related to the image processing can be further reduced.
上述した一連の処理は、ハードウエアにより実行させることもできるし、ソフトウエアにより実行させることもできる。一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、専用のハードウエアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム記録媒体からインストールされる。 The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software executes various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a program recording medium in a general-purpose personal computer or the like.
図27は、図1,図18,図21,図24の状態遷移プログラム編集装置1の電気的な内部構成をソフトウェアにより実現する場合のパーソナルコンピュータの一実施の形態の構成を示している。パーソナルコンピュータのCPU501は、パーソナルコンピュータの全体の動作を制御する。また、CPU501は、バス504および入出力インタフェース505を介してユーザからキーボードやマウスなどからなる入力部506から指令が入力されると、それに対応してROM(Read Only Memory)502に格納されているプログラムを実行する。あるいはまた、CPU501は、ドライブ510に接続された磁気ディスク、光ディスク、光磁気ディスク、または半導体メモリを含むリムーバルメディア521から読み出され、記憶部508にインストールされたプログラムを、RAM(Random Access Memory)503にロードして実行する。これにより、上述した図1,図18,図21,図24の状態遷移プログラム編集装置1の機能が、ソフトウェアにより実現されている。さらに、CPU501は、通信部509を制御して、外部と通信し、データの授受を実行する。
FIG. 27 shows a configuration of an embodiment of a personal computer in a case where the electrical internal configuration of the state transition
コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを格納するプログラム記録媒体は、図27に示すように、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスクを含む)、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア521、または、プログラムが一時的もしくは永続的に格納されるROM502や、記憶部508を構成するハードディスクなどにより構成される。プログラム記録媒体へのプログラムの格納は、必要に応じてルータ、モデムなどのインタフェースである通信部509を介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を利用して行われる。
As shown in FIG. 27, a program recording medium for storing a program that is installed in a computer and can be executed by the computer is a magnetic disk (including a flexible disk), an optical disk (CD-ROM (Compact Disc-Read Only). Memory), DVD (Digital Versatile Disc) (including magneto-optical disk), or removable media 521 which is a package medium made of semiconductor memory or the like,
なお、本明細書において、プログラム記録媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。 In the present specification, the step of describing the program stored in the program recording medium is not limited to the processing performed in time series in the order described, but is not necessarily performed in time series. Or the process performed separately is also included.
なお、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。 The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
11 操作部, 12 編集部, 13 ステートデータ格納部, 14 リンクデータ格納部, 15 状態遷移図生成部, 16 状態遷移エンジン, 17 状態動作実行部, 18 表示制御部, 19 表示部, 31 ステート編集部, 32 トランジション編集部, 33 スクリプト編集部, 41 ステート枠生成部, 42 トランジション生成部, 43 アイコン生成部, 44 リンクファイル付ステート検索部, 51 スクリプト表示制御部, 52 状態遷移図表示制御部, 53 ステートリスト表示制御部, 54 リンクリスト表示制御部, 55 状態動作表示制御部, 201 状態動作実行部, 211 遷移先ステート検索部, 212 状態動作実行部, 271 状態動作実行部, 272 マウスオーバステート検索部 11 operation unit, 12 editing unit, 13 state data storage unit, 14 link data storage unit, 15 state transition diagram generation unit, 16 state transition engine, 17 state operation execution unit, 18 display control unit, 19 display unit, 31 state editing Section, 32 transition editing section, 33 script editing section, 41 state frame generation section, 42 transition generation section, 43 icon generation section, 44 state search section with link file, 51 script display control section, 52 state transition diagram display control section, 53 State list display control unit, 54 Link list display control unit, 55 State operation display control unit, 201 State operation execution unit, 211 Transition destination state search unit, 212 State operation execution unit, 271 State operation execution unit, 272 Mouse over state Search part
Claims (8)
前記生成ステップの処理により生成された状態遷移図を表示する表示ステップと、
前記表示ステップにより表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移情報を更新する更新ステップと、
前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成ステップの処理を制御する生成制御ステップと
を含む情報処理方法。 Based on state transition information including at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition direction information indicating which other state to transition to by the event A generation step for generating a state transition diagram;
A display step for displaying a state transition diagram generated by the processing of the generation step;
An operation step of operating the state transition diagram displayed by the display step;
An update step for updating the state transition information according to the operation content in the processing of the operation step;
If the operation in the state is an operation for executing a predetermined file, information including a generation control step for controlling processing of the generation step so that information indicating the predetermined file is displayed on the state transition diagram Processing method.
請求項1に記載の情報処理方法。 When the icon indicating the predetermined file is dragged and dropped on the image indicating the state by the processing in the operation step, the update step is performed by changing the operation in the state to the predetermined file dragged and dropped. The information processing method according to claim 1, wherein the information is updated to an operation to be executed.
請求項1に記載の情報処理方法。 When the operation in the state is an operation of executing the predetermined file, the generation control step displays information indicating that the predetermined file is executed on an image indicating the state on the state transition diagram. The information processing method according to claim 1, wherein the processing of the generation step is controlled so as to be displayed on the screen.
前記状態における動作が、前記所定のファイルを実行する動作である場合、前記生成制御ステップは、前記所定のファイルが実行されることを示す情報として、前記状態遷移図上の前記状態情報を示す画像上に所定のアイコンを付加して表示させるように前記生成ステップの処理を制御する
請求項3に記載の情報処理方法。 The image showing the state on the state transition diagram is an image displaying the state information,
When the operation in the state is an operation of executing the predetermined file, the generation control step is an image indicating the state information on the state transition diagram as information indicating that the predetermined file is executed. The information processing method according to claim 3, wherein the process of the generation step is controlled so that a predetermined icon is added to the display.
請求項1に記載の情報処理方法。 The information processing method according to claim 1, wherein the predetermined file is an animation or moving image file.
前記生成手段により生成された状態遷移図を表示する表示手段と、
前記表示手段により表示された状態遷移図を操作する操作手段と、
前記操作手段における操作内容に応じて、前記状態遷移情報を更新する更新手段と、
前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成手段を制御する生成制御手段と
を含む情報処理装置。 Based on state transition information including at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition direction information indicating which other state to transition to by the event Generating means for generating a state transition diagram;
Display means for displaying the state transition diagram generated by the generating means;
Operating means for operating the state transition diagram displayed by the display means;
Updating means for updating the state transition information according to the operation content in the operation means;
An information processing apparatus comprising: a generation control unit that controls the generation unit to display information indicating the predetermined file on the state transition diagram when the operation in the state is an operation of executing the predetermined file .
前記生成ステップの処理により生成された状態遷移図を表示する表示ステップと、
前記表示ステップにより表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移情報を更新する更新ステップと、
前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成ステップの処理を制御する生成制御ステップと
を含むコンピュータが読み取り可能なプログラムが記録されている記録媒体。 Based on state transition information including at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition direction information indicating which other state to transition to by the event A generation step for generating a state transition diagram;
A display step for displaying a state transition diagram generated by the processing of the generation step;
An operation step of operating the state transition diagram displayed by the display step;
An update step for updating the state transition information according to the operation content in the processing of the operation step;
A computer including: a generation control step that controls processing of the generation step so that information indicating the predetermined file is displayed on the state transition diagram when the operation in the state is an operation of executing the predetermined file; Is a recording medium on which a readable program is recorded.
前記生成ステップの処理により生成された状態遷移図を表示する表示ステップと、
前記表示ステップにより表示された状態遷移図を操作する操作ステップと、
前記操作ステップの処理における操作内容に応じて、前記状態遷移情報を更新する更新ステップと、
前記状態における動作が所定のファイルを実行する動作である場合、前記所定のファイルを示す情報を、前記状態遷移図上に表示させるように前記生成ステップの処理を制御する生成制御ステップと
を含む処理をコンピュータに実行させるプログラム。 Based on state transition information including at least two or more states, an operation in each of the states, an event at the time of transition in each of the states, and a transition direction information indicating which other state to transition to by the event A generation step for generating a state transition diagram;
A display step for displaying a state transition diagram generated by the processing of the generation step;
An operation step of operating the state transition diagram displayed by the display step;
An update step for updating the state transition information according to the operation content in the processing of the operation step;
A process including: a generation control step for controlling the process of the generation step so that information indicating the predetermined file is displayed on the state transition diagram when the operation in the state is an operation of executing the predetermined file; A program that causes a computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005235640A JP4802601B2 (en) | 2005-08-16 | 2005-08-16 | Information processing method and apparatus, recording medium, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005235640A JP4802601B2 (en) | 2005-08-16 | 2005-08-16 | Information processing method and apparatus, recording medium, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007052517A true JP2007052517A (en) | 2007-03-01 |
JP4802601B2 JP4802601B2 (en) | 2011-10-26 |
Family
ID=37916942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005235640A Expired - Fee Related JP4802601B2 (en) | 2005-08-16 | 2005-08-16 | Information processing method and apparatus, recording medium, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4802601B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002073168A (en) * | 2000-09-05 | 2002-03-12 | Sharp Corp | Device and method for managing state transition diagram, state transition diagram display device and program recording medium |
JP2003196091A (en) * | 2001-12-27 | 2003-07-11 | Toshiba Corp | Program making support system and program making support method |
JP2004272812A (en) * | 2003-03-11 | 2004-09-30 | Ricoh Co Ltd | Data editing device, program for executing data editing method on computer |
JP2007128244A (en) * | 2005-11-02 | 2007-05-24 | Sony Corp | Information processing method and apparatus, recording medium and program |
-
2005
- 2005-08-16 JP JP2005235640A patent/JP4802601B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002073168A (en) * | 2000-09-05 | 2002-03-12 | Sharp Corp | Device and method for managing state transition diagram, state transition diagram display device and program recording medium |
JP2003196091A (en) * | 2001-12-27 | 2003-07-11 | Toshiba Corp | Program making support system and program making support method |
JP2004272812A (en) * | 2003-03-11 | 2004-09-30 | Ricoh Co Ltd | Data editing device, program for executing data editing method on computer |
JP2007128244A (en) * | 2005-11-02 | 2007-05-24 | Sony Corp | Information processing method and apparatus, recording medium and program |
Also Published As
Publication number | Publication date |
---|---|
JP4802601B2 (en) | 2011-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220229536A1 (en) | Information processing apparatus display control method and program | |
RU2506629C2 (en) | Creating presentation on infinite canvas and navigation thereon | |
WO2012176365A1 (en) | Gui program creation support device, gui program creation support method, program and integrated circuit | |
JP2005267390A (en) | Display control device, display control method, and storage medium | |
JP2008117019A (en) | Conference information management apparatus, conference reproduction apparatus, equipment management apparatus, conference system and program | |
JP2009153223A (en) | Reproducing method | |
CN112987999A (en) | Video editing method and device, computer readable storage medium and electronic equipment | |
JP2005317115A (en) | Information processor, information processing method, and program | |
JP2007079957A (en) | Information processing method and device, recording medium, and program | |
JP2007060005A (en) | Digital data reproducing device | |
JP4802601B2 (en) | Information processing method and apparatus, recording medium, and program | |
JP5149801B2 (en) | Disc authoring portfolio | |
JP2007079955A (en) | Information processing method and device, recording medium and program | |
JP4660374B2 (en) | Recording / reproducing system, recording apparatus, reproducing apparatus, recording medium, recording / reproducing method, recording method, reproducing method, program, and recording medium | |
JP4674726B2 (en) | File management method and information processing apparatus | |
JP2007128244A (en) | Information processing method and apparatus, recording medium and program | |
JP2010287273A (en) | Device and method for reproducing information | |
JP4213738B2 (en) | Information processing apparatus and information processing method | |
JP2009205643A (en) | Screen transition design supporting device, screen transition design supporting method, and screen transition design supporting program | |
JP5141710B2 (en) | Karaoke device, program | |
JP7009981B2 (en) | VR content management method and management program that supports the operation and management of VR content | |
JP2007221603A (en) | Recording and reproducing device, and recording and reproducing method | |
JP2007079954A (en) | Information processing method and device, recording medium and program | |
JP2008059385A (en) | Information processor, information processing method, program, and control method for information processor | |
JP2009187312A (en) | Information processor and its display control method, and display control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080805 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110426 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110427 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110617 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110712 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110725 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140819 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |