Analytical Perspectives in Game Design


 

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface bvyy.smf.StateChangeListener

public interface StateChangeListener
extends EventListener
Version:
1.0.4 24 May 1998
Author:
(c) 1998 Brian Yap All Rights Reserved

Method Index

 o fireStateChange(ModifiableChangeEvent)
Change the state from the current state to a new state.

Methods

 o fireStateChange
 public abstract void fireStateChange(ModifiableChangeEvent evt) throws PropertyVetoException
Change the state from the current state to a new state. If the state request is not possible then no transition happens. This might happen in a multi-user game where another user has acted just before this user.

The folllowing steps are peroformed:

(1) Check for vetos (It will be rejected on the first veto.)

(2) Check for modifiers (Modifiers are cumulative.)

(3) Make changes

(4) Notify others of changes

Throws: PropertyVetoException
thrown if a vetoable listener vetoes the change.

All Packages  Class Hierarchy  This Package  Previous  Next  Index

22/11/99

 


See also: [Role Playing Games] [Game Engine]
© 1998, 1999 Brian Yap. These pages are available under the GNU licence.