wyvern.lib.properties
Class Invisible

java.lang.Object
  extended bywyvern.lib.properties.Invisible

public class Invisible
extends java.lang.Object

Encapsulates the various definitions and types of invisibility.

Version:
1.0, Nov 10, 1997
Author:
Steve Yegge

Field Summary
static int ENGINE_OBJECT
          A game-engine object; non-wizards should never see these.
static int INVISIBLE
          Plain-vanilla invisibility - actually any positive number.
static int TRAP
          A hidden trap - should be undetectable by see-invisible.
static int VISIBLE
          the default invisibility level (visible) is zero, in keeping with the semantics of int properties.
 
Constructor Summary
Invisible()
           
 
Method Summary
static void becomeInvisible(GameObject obj)
           
static void becomeVisible(GameObject obj)
           
static boolean decrease(GameObject obj)
          Decrease the invisibilty of an object.
static boolean increase(GameObject obj)
          Increase the invisibilty of an object.
static void playerMessage(GameObject obj, java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISIBLE

public static final int VISIBLE
the default invisibility level (visible) is zero, in keeping with the semantics of int properties.

See Also:
Constant Field Values

INVISIBLE

public static final int INVISIBLE
Plain-vanilla invisibility - actually any positive number.

See Also:
Constant Field Values

TRAP

public static final int TRAP
A hidden trap - should be undetectable by see-invisible.

See Also:
Constant Field Values

ENGINE_OBJECT

public static final int ENGINE_OBJECT
A game-engine object; non-wizards should never see these.

See Also:
Constant Field Values
Constructor Detail

Invisible

public Invisible()
Method Detail

increase

public static boolean increase(GameObject obj)
Increase the invisibilty of an object. If it's a player, tell them when they become invisible.


decrease

public static boolean decrease(GameObject obj)
Decrease the invisibilty of an object. If it's a player, tell them when they become visible.


playerMessage

public static void playerMessage(GameObject obj,
                                 java.lang.String msg)

becomeVisible

public static void becomeVisible(GameObject obj)

becomeInvisible

public static void becomeInvisible(GameObject obj)