Analytical Perspectives in Game Design


 

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bvyy.command.CommandSet

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----bvyy.util.GeneralEvent
                   |
                   +----bvyy.command.Command
                           |
                           +----bvyy.command.CommandSet

public class CommandSet
extends Command
The command set allows for sequences of commands (order is very important as is has semantic meaning) and allows command to contain commands.

Version:
0.0.1 27 October 1998
Author:
(c)1998 Brian Voon Yee Yap

Constructor Index

 o CommandSet()
Creates an empty command set.
 o CommandSet(String)
Creates an empty command set with a description of S.

Method Index

 o getCommandList()
Returns the current command list.
 o setCommandList(Vector)
Allows replacement of the current command list with a new command list.

Constructors

 o CommandSet
 public CommandSet()
Creates an empty command set.

 o CommandSet
 public CommandSet(String s)
Creates an empty command set with a description of S.

Parameters:
s - the event description.

Methods

 o setCommandList
 public void setCommandList(Vector newCommandList)
Allows replacement of the current command list with a new command list. All current commands are lost.

Note: The command set comes with it's own command list so it will not normally be necessary to call this function.

It a null command list is supplied it will be ignored.

Parameters:
newCommandList - the list that replaces the current list.
 o getCommandList
 public Vector getCommandList()
Returns the current command list. The command list is a vector and this allows modification this list using the normal vector functions.

For example: comandSet.getCommandList.addElement(CommandX);

See Also:
vector

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.