Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1473 - development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1473 - development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view
  • Date: Fri, 14 Jan 2005 06:23:42 +0100

Author: niclas
Date: Fri Jan 14 06:23:41 2005
New Revision: 1473

Modified:

development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view/Visit.java
Log:
Fixed the CorrectWord problem.

Modified:
development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view/Visit.java
==============================================================================
---
development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view/Visit.java
(original)
+++
development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view/Visit.java
Fri Jan 14 06:23:41 2005
@@ -5,19 +5,19 @@
import net.dpml.http.hangman.Controller;
import net.dpml.http.hangman.Game;

-public class Visit
- implements Serializable
+public class Visit
+ implements Serializable
{
private Controller m_Controller;
private boolean m_Complete;
private String m_Correct;
-
- public Game getGame()
+
+ public Game getGame()
{
return m_Controller.getGame( this );
}
-
- public void startGame( Controller controller, int iMaxMisses )
+
+ public void startGame( Controller controller, int iMaxMisses )
{
m_Complete = false;
m_Controller = controller;
@@ -25,15 +25,20 @@
g.start( iMaxMisses );
m_Correct = g.getCorrectWord();
}
-
+
public void gameFinished()
{
m_Controller.releaseGame( this );
m_Complete = true;
}
-
+
public boolean getCompleted()
{
return m_Complete;
}
+
+ public String getCorrectWord()
+ {
+ return m_Correct;
+ }
}



  • svn commit: r1473 - development/main/planet/facilities/http/examples/hangman/view/src/main/net/dpml/http/hangman/view, niclas, 01/14/2005

Archive powered by MHonArc 2.6.24.

Top of Page