Code Search for Developers
 
 
  

ID.java from Magellan-Client at Krugle


Show ID.java syntax highlighted

/*
 *  Copyright (C) 2000-2004 Roger Butenuth, Andreas Gampe,
 *                          Stefan Goetz, Sebastian Pappert,
 *                          Klaas Prause, Enno Rehling,
 *                          Sebastian Tusk, Ulrich Kuester,
 *                          Ilja Pavkovic
 *
 * This file is part of the Eressea Java Code Base, see the
 * file LICENSING for the licensing information applying to
 * this file.
 *
 */

package com.eressea;

/**
 * A general interface to ID objects conveying "uniqueness".
 */
public interface ID extends Comparable, Cloneable {
	/**
	 * DOCUMENT ME!
	 *
	 * @return a String representation of the ID formatted in a  user friendly manner.
	 */
	public String toString();

	/**
	 * Returns a String representation of the ID formatted in a  user friendly manner with a given
	 * seperator. Right now only Coordinate should implement this, all others should invoke
	 * toString()!
	 *
	 * @return a String representation of the ID formatted in a  user friendly manner.
	 */
	public String toString(String delim);

	/**
	 * Compares this object to the specified object. The result is true if and only if the argument
	 * is not null and is an object of the same class implementing this interface and contains the
	 * same unique value.
	 *
	 * @param obj the reference object with which to compare.
	 *
	 * @return <code>true</code> if this object is the same as the obj argument; <code>false</code>
	 * 		   otherwise.
	 */
	public boolean equals(Object obj);

	/**
	 * Returns a hashcode for this ID.
	 *
	 * @return a hash code value for this object.
	 */
	public int hashCode();

	/**
	 * Imposes a natural ordering on ID objects.
	 *
	 * @return TODO: DOCUMENT ME!
	 */
	public int compareTo(Object o);

	/**
	 * Returns a copy of this object.
	 *
	 * @return TODO: DOCUMENT ME!
	 */
	public Object clone() throws CloneNotSupportedException;
}




See more files for this project here

Magellan-Client

The Magellan Client is basicly a GUI for the pbem game eressea but can be used for other pbems based on \"atlantis\" too.

Project homepage: http://sourceforge.net/projects/magellan-client
Programming language(s): Java
License: other

  completion/
    AutoCompletion.java
    Completer.java
    CompleterSettingsProvider.java
    Completion.java
    OrderParser.java
  cr/
    Loader.java
  demo/
    actions/
      AbortAction.java
      AddCRAction.java
      AddSelectionAction.java
      ArmyStatsAction.java
      ChangeFactionConfirmationAction.java
      ConfirmAction.java
      ECheckAction.java
      EresseaOptionsAction.java
      ExpandSelectionAction.java
      ExportCRAction.java
      ExternalModuleAction.java
      FactionStatsAction.java
      FileHistoryAction.java
      FileSaveAction.java
      FileSaveAsAction.java
      FillSelectionAction.java
      FindAction.java
      FindPreviousUnconfirmedAction.java
      HelpAction.java
      InfoAction.java
      InvertSelectionAction.java
      IslandAction.java
      MapSaveAction.java
      MenuAction.java
      OpenCRAction.java
      OpenOrdersAction.java
      OpenSelectionAction.java
      OptionAction.java
      QuitAction.java
      RedoAction.java
    desktop/
    Client.java
    ClientPreferences.java
    EMapDetailsPanel.java
    EMapOverviewPanel.java
    FindDialog.java
    MagellanUndoManager.java
    SetOriginDialog.java
  event/
  extern/
  gamebinding/
  io/
  main/
  relation/
  resource/
  rules/
  skillchart/
  swing/
  tasks/
  util/
  Alliance.java
  Battle.java
  Border.java
  Building.java
  CombatSpell.java
  CompleteData.java
  CoordinateID.java
  Described.java
  DescribedObject.java
  EntityID.java
  Faction.java
  GameData.java
  Group.java
  HasRegion.java
  HotSpot.java
  ID.java
  Identifiable.java
  IntegerID.java
  Island.java
  Item.java
  LongID.java
  LuxuryPrice.java
  Message.java
  MissingData.java
  Named.java
  NamedObject.java
  Potion.java
  Region.java
  RegionResource.java
  Related.java
  RelatedObject.java
  Rules.java
  Scheme.java
  Ship.java
  Sign.java
  Skill.java
  Spell.java
  StringID.java
  TempUnit.java
  Unique.java
  Unit.java
  UnitContainer.java
  UnitID.java
  ZeroUnit.java