|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.Flags
public class Flags
In order to make effective use of proxies, limited use can be made of the
instanceof
operator. Instead, flags are assigned to pieces
to indicate basic characteristics of the piece.
Field Summary | |
---|---|
static int |
AMMO_ENLIVENER
A piece that enlivens ammo when it hits it, making the ammo dangerous to everyone, player and agents alike. |
static int |
AMMUNITION
This item is a form of ammunition (it is shot from another item marked as a RANGED_WEAPON. |
static int |
AQUATIC
This piece represents water, or an agent that can only move in water. |
static int |
CARNIVORE
This agent likes meat. |
static int |
DETECT_HIDDEN
This is a quality imparted to the player that makes him or her able to see hidden things. |
static int |
ETHEREAL
Items dropped on this terrain will disappear, rather than falling to the ground. |
static int |
FIRE_RESISTANT
This is a quality imparted to the player that makes him or her resistant to lava and fire. |
static int |
FLIER
This agent can fly. |
static int |
HIDES_ITEMS
A kind of terrain that hides the items that are located on it. |
static int |
LAVITIC
This piece represents lava, or an agent that can only move in lava. |
static int |
MEAT
This item is meat, and CARNIVORES will chase after it rather than the player. |
static int |
MELEE_WEAPON
This item is a melee weapon. |
static int |
NOT_EDITABLE
This piece should not be available in the map editor. |
static int |
ORGANIC
This agent is organic, and can be effected by fire. |
static int |
PARALYSIS_RESISTANT
This is a quality imparted to the player that makes him or her resistant to paralysis. |
static int |
PARALYZED
The agent has been paralyzed. |
static int |
PENETRABLE
Thrown items can fly over this terrain. |
static int |
PLAYER
This piece is the player (or a proxy for the player). |
static int |
POISON_RESISTANT
This is a quality imparted to the player that makes him or her resistant to poisoning. |
static int |
POISONED
The player is poisoned (cannot heal until the poisoning is removed). |
static int |
PUSHABLE
This agent is pushable. |
static int |
RANGED_WEAPON
This item is a ranged weapon. |
static int |
REQUIRES_AMMO
A ranged weapon that wants to consume some kind of ammo. |
static int |
STONING_RESISTANT
This is a quality imparted to the player that makes him or her resistant to stoning. |
static int |
THEFT_RESISTANT
This is a quality imparted to the player that makes him or her resistant to theft attacks. |
static int |
TRANSIENT
|
static int |
TRAVERSABLE
This terrain is traversable by agents. |
static int |
TURNED_TO_STONE
The agent has been turned to stone. |
static int |
VERTICAL
The terrain allows vertical movement. |
static int |
WATER_RESISTANT
This is a quality imparted to the player that makes him or her able to travel in water. |
static int |
WEAK
The player is too weak to hold or pick up anything. |
static int |
WEAPON
This item is a weapon. |
Constructor Summary | |
---|---|
Flags()
|
Method Summary | |
---|---|
static java.lang.String |
description(int flags)
Generates the description of those flags that are visible to the player, that are displayed in the "Flags" section of the game interface. |
static int |
getFlag(java.lang.String label)
|
static boolean |
is(int flag,
int flags)
|
static boolean |
matches(java.lang.String label,
int flags)
|
static boolean |
not(int flag,
int flags)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AMMO_ENLIVENER
public static final int AMMUNITION
public static final int AQUATIC
public static final int CARNIVORE
public static final int DETECT_HIDDEN
public static final int ETHEREAL
public static final int FIRE_RESISTANT
public static final int FLIER
public static final int HIDES_ITEMS
public static final int LAVITIC
public static final int MEAT
public static final int MELEE_WEAPON
public static final int NOT_EDITABLE
public static final int ORGANIC
public static final int PARALYSIS_RESISTANT
public static final int PARALYZED
public static final int PENETRABLE
public static final int PLAYER
public static final int POISON_RESISTANT
public static final int POISONED
public static final int PUSHABLE
public static final int RANGED_WEAPON
onFire
public static final int REQUIRES_AMMO
public static final int STONING_RESISTANT
public static final int THEFT_RESISTANT
public static final int TRANSIENT
public static final int TRAVERSABLE
public static final int TURNED_TO_STONE
public static final int VERTICAL
public static final int WATER_RESISTANT
public static final int WEAK
public static final int WEAPON
Constructor Detail |
---|
public Flags()
Method Detail |
---|
public static final java.lang.String description(int flags)
flags
-
public static int getFlag(java.lang.String label)
public static boolean is(int flag, int flags)
public static boolean matches(java.lang.String label, int flags)
public static boolean not(int flag, int flags)
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark