com.robrohan.ruin.doom
Class Sidedef

java.lang.Object
  |
  +--com.robrohan.ruin.doom.Sidedef
All Implemented Interfaces:
java.io.Serializable

public class Sidedef
extends java.lang.Object
implements java.io.Serializable

A sidedef is a definition of what wall texture(s) to draw along a LINEDEF, and a group of sidedefs outline the space of a SECTOR. There will be one sidedef for a line that borders only one sector (and it must be the RIGHT side). It is not necessary to define what the player would see from the other side of that line because the player "can't" go there. The player can only go where there is a sector.

See Also:
Serialized Form

Constructor Summary
Sidedef(java.lang.String upperImage, java.lang.String middleImage, java.lang.String lowerImage, int sectorNo, int xTexOffs, int yTexOffs)
           
 
Method Summary
 void compile(DoomLevel level)
           
 java.lang.String getLowerImage()
           
 java.lang.String getMiddleImage()
           
 Sector getSector()
          get the sector object this Sidedef belongs to
 int getSectorNo()
          get the sector number this Sidedef belongs to
 java.lang.String getUpperImage()
           
 int getXTexOffs()
          texture x offset for this side def
 int getYTexOffs()
          texture y offset for this side def
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sidedef

public Sidedef(java.lang.String upperImage,
               java.lang.String middleImage,
               java.lang.String lowerImage,
               int sectorNo,
               int xTexOffs,
               int yTexOffs)
Method Detail

getUpperImage

public java.lang.String getUpperImage()

getMiddleImage

public java.lang.String getMiddleImage()

getLowerImage

public java.lang.String getLowerImage()

getSectorNo

public int getSectorNo()
get the sector number this Sidedef belongs to


getSector

public Sector getSector()
get the sector object this Sidedef belongs to


compile

public void compile(DoomLevel level)

getXTexOffs

public int getXTexOffs()
texture x offset for this side def


getYTexOffs

public int getYTexOffs()
texture y offset for this side def