wyvern.kernel.player
Class EyeFrame

java.lang.Object
  extended bywyvern.kernel.maps.Frame
      extended bywyvern.kernel.player.EyeFrame
All Implemented Interfaces:
DisplayPolicy, LightingConstants, Visitor

public class EyeFrame
extends Frame

This class implements the display policy for a standard Player object. Eventually it should be controlled entirely by properties on the player.

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

Nested Class Summary
 
Nested classes inherited from class wyvern.kernel.maps.Frame
Frame.VisibilityConstants
 
Field Summary
 
Fields inherited from class wyvern.kernel.maps.Frame
allTerrain_, caster_, completeUpdate_, frameCache_, handheld_, height_, lightOff_, map_, nightVision_, objects_, terrain_, terrainInfo_, updateMap_, viewx_, viewy_, visCache_, width_
 
Fields inherited from interface wyvern.lib.properties.LightingConstants
DARKNESS, DAYLIGHT, DIM, DUSK, GLOOM, NUM_SHADES, SHADED, TWILIGHT
 
Constructor Summary
EyeFrame(Commandable agent)
          Constructs a new EyeFrame with the default bounds.
EyeFrame(Commandable agent, int x, int y, int w, int h)
          Constructs a new EyeFrame
 
Method Summary
 boolean checkAdd(GameObject obj)
          See if we want to add this object to the frame.
 
Methods inherited from class wyvern.kernel.maps.Frame
add, addDescriptor, addObject, addTerrain, addUpdateRegions, cacheVisFlags, canSee, computeDistance, computeNightVision, computeXRayVision, discardChanges, doRayCast, getProfilingInfo, getSparseTerrainInfo, getTerrainInfo, grabAll, grabLight, grabLocation, grabObjects, isHandheld, makeSparseArray, printSparseTree, setBounds, setBounds, setHandheld, stuffPoint, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EyeFrame

public EyeFrame(Commandable agent)
Constructs a new EyeFrame with the default bounds.


EyeFrame

public EyeFrame(Commandable agent,
                int x,
                int y,
                int w,
                int h)
Constructs a new EyeFrame

Method Detail

checkAdd

public boolean checkAdd(GameObject obj)
See if we want to add this object to the frame.

Specified by:
checkAdd in interface DisplayPolicy
Overrides:
checkAdd in class Frame
Parameters:
obj - a GameObject
Returns:
true to add the object