player
Class PkgCommand

java.lang.Object
  |
  +--player.Command
        |
        +--player.PkgCommand
Direct Known Subclasses:
DropCommand, PickCommand

public abstract class PkgCommand
extends Command

Abstract class that implements robot package commmands.

Version:
$Revision: 1.3 $
Author:
Allen D. Ball

Constructor Summary
protected PkgCommand()
          Creates a robot command.
 
Method Summary
 String getArguments()
          Method to get the optional arguments for a command
 void pkgAdd(Pkg pkg)
          Method to add a package to the command package list.
 void pkgRemove(Pkg pkg)
          Method to remove a package from the command package list.
 
Methods inherited from class player.Command
getBid, getCost, getName, setBid, setDirection, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PkgCommand

protected PkgCommand()
Creates a robot command.
Method Detail

getArguments

public final String getArguments()
Description copied from class: Command
Method to get the optional arguments for a command
Overrides:
getArguments in class Command
Following copied from class: player.Command
Returns:
The optional arguments for this commnd.

pkgAdd

public final void pkgAdd(Pkg pkg)
Method to add a package to the command package list.
Overrides:
pkgAdd in class Command
Parameters:
pkg - The package to add to the command list.

pkgRemove

public final void pkgRemove(Pkg pkg)
Method to remove a package from the command package list.
Overrides:
pkgRemove in class Command
Parameters:
pkg - The package to remove from the command list.


Copyright 2002 Allen D. Ball. All rights reserved.