Record Class IsoCell.StencilArea
java.lang.Object
java.lang.Record
zombie.iso.IsoCell.StencilArea
- Enclosing class:
IsoCell
public static record IsoCell.StencilArea(int stencilX1, int stencilY1, int stencilX2, int stencilY2, int x, int y, int texWidth, int texHeight, int offX, int offY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStencilArea(int stencilX1, int stencilY1, int stencilX2, int stencilY2, int x, int y, int texWidth, int texHeight, int offX, int offY) Creates an instance of aStencilArearecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffX()Returns the value of theoffXrecord component.intoffY()Returns the value of theoffYrecord component.intReturns the value of thestencilX1record component.intReturns the value of thestencilX2record component.intReturns the value of thestencilY1record component.intReturns the value of thestencilY2record component.intReturns the value of thetexHeightrecord component.inttexWidth()Returns the value of thetexWidthrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
StencilArea
public StencilArea(int stencilX1, int stencilY1, int stencilX2, int stencilY2, int x, int y, int texWidth, int texHeight, int offX, int offY) Creates an instance of aStencilArearecord class.- Parameters:
stencilX1- the value for thestencilX1record componentstencilY1- the value for thestencilY1record componentstencilX2- the value for thestencilX2record componentstencilY2- the value for thestencilY2record componentx- the value for thexrecord componenty- the value for theyrecord componenttexWidth- the value for thetexWidthrecord componenttexHeight- the value for thetexHeightrecord componentoffX- the value for theoffXrecord componentoffY- the value for theoffYrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
stencilX1
public int stencilX1()Returns the value of thestencilX1record component.- Returns:
- the value of the
stencilX1record component
-
stencilY1
public int stencilY1()Returns the value of thestencilY1record component.- Returns:
- the value of the
stencilY1record component
-
stencilX2
public int stencilX2()Returns the value of thestencilX2record component.- Returns:
- the value of the
stencilX2record component
-
stencilY2
public int stencilY2()Returns the value of thestencilY2record component.- Returns:
- the value of the
stencilY2record component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
texWidth
public int texWidth()Returns the value of thetexWidthrecord component.- Returns:
- the value of the
texWidthrecord component
-
texHeight
public int texHeight()Returns the value of thetexHeightrecord component.- Returns:
- the value of the
texHeightrecord component
-
offX
public int offX()Returns the value of theoffXrecord component.- Returns:
- the value of the
offXrecord component
-
offY
public int offY()Returns the value of theoffYrecord component.- Returns:
- the value of the
offYrecord component
-