hi Denis,<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 6:02 PM, <span dir="ltr"><<a href="mailto:dkasak13@users.sourceforge.net">dkasak13@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Revision: 42874<br>
<a href="http://scummvm.svn.sourceforge.net/scummvm/?rev=42874&view=rev" target="_blank">http://scummvm.svn.sourceforge.net/scummvm/?rev=42874&view=rev</a><br>
Author: dkasak13<br>
Date: 2009-07-29 01:02:50 +0000 (Wed, 29 Jul 2009)<br>
<br>
Log Message:<br>
-----------<br>
* Implemented GPL function ActPhase (as Script::funcActPhase())<br>
</blockquote><div><br></div><div>I would rename it to CurrentPhase, because that's what we meant. we used Act as an acronym for Actual, because the Czech word for current is aktualni and we believed that was the proper English translation. now that I actually speak English, I know that the word is current.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">* Trivial implementation of the Play GPL command</blockquote><div><br></div><div>that won't really work until you change your loop method to implement various modes like in the original game. basically, based on the mode, the original loop function exited when some event happened, such as the hero has arrived at a pointed spot, or some animation finished. the same loop was also used as the main interactive game loop.</div>
<div><br></div><div>we have two such modes defined, because the loop can be called within itself via a GPL command:</div><div><br></div><div>G_LoopStatus:</div><div>- ordinary = the user is clicking with the mouse and expecting interactivity</div>
<div>- inventory = the inventory is opened and we are selecting an item</div><div>- dialogue = we are inside a dialog</div><div><br></div><div>G_LoopSubStatus:</div><div>- ordinary = nothing is going on</div><div>- strange = waiting for the end of some action called from a GPL program</div>
<div>- talk = someone is talking, we are waiting until he's finished</div><div><br></div><div>I'd be more than happy if you design things such that these modes are more transparent, but I haven't done any research yet on whether this would be practical.</div>
</div><br>-- <br>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>