Package zombie.vehicles
Class VehicleDoor
java.lang.Object
zombie.vehicles.VehicleDoor
public class VehicleDoor
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected boolean
lockBroken
protected boolean
locked
protected boolean
open
protected VehiclePart
part
-
Constructor Summary
Constructors Constructor Description VehicleDoor(VehiclePart vehiclePart)
-
Method Summary
Modifier and Type Method Description void
init(VehicleScript.Door door)
boolean
isLockBroken()
boolean
isLocked()
boolean
isOpen()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
save(java.nio.ByteBuffer byteBuffer)
void
setLockBroken(boolean boolean1)
void
setLocked(boolean boolean1)
void
setOpen(boolean boolean1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
part
-
open
protected boolean open -
locked
protected boolean locked -
lockBroken
protected boolean lockBroken
-
-
Constructor Details
-
VehicleDoor
-
-
Method Details
-
init
-
isOpen
public boolean isOpen() -
setOpen
public void setOpen(boolean boolean1) -
isLocked
public boolean isLocked() -
setLocked
public void setLocked(boolean boolean1) -
isLockBroken
public boolean isLockBroken() -
setLockBroken
public void setLockBroken(boolean boolean1) -
save
public void save(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException- Throws:
java.io.IOException
-