Targetable.java

key0-96/src/core/Targetable.java · 1.1 KB

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

/*
**               j###t  ########## ####   ####
**              j###t   ########## ####   ####
**             j###T               "###L J###"
**          ######P'    ##########  #########
**          ######k,    ##########   T######T
**          ####~###L   ####
**          #### q###L  ##########   .#####
**          ####  \###L ##########   #####"
**
**  $Id$
**
**  Class History
**
**  Date        Name         Description
**  ---------|------------|-----------------------------------------------
**  19Aug98     subtle       start of recorded history
**
*/

package key;

/**
  *  Only things of class Atom should implement this
  *  class.
 */
public interface Targetable
{
	/**
	  *  default implementation might be something like:
	  *  return( rank.getTargets().contains( this ) );
	  *
	  *  This needs to be overriden because a player isn't
	  *  targetted directly, generally - they're targetted
	  *  by people who have a rank that targets them...
	  *
	  *  Sites, now, aren't targetable, but internet will
	  *  be targetted normally...
	 */
	public boolean isOutRankedBy( Rank rank );
}

Site Stats

Snippets: 1791
Codebases: 571