Package skadistats.clarity.model.engine
Class AbstractEngineType
- java.lang.Object
-
- skadistats.clarity.model.engine.AbstractEngineType
-
- All Implemented Interfaces:
EngineType
- Direct Known Subclasses:
AbstractDotaEngineType
,CsGoEngineType
public abstract class AbstractEngineType extends Object implements EngineType
-
-
Field Summary
Fields Modifier and Type Field Description protected PacketReader
packetReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
emptyHandle()
EngineId
getId()
int
getIndexBits()
int
getSerialBits()
boolean
handleDeletions()
int
handleForIndexAndSerial(int index, int serial)
int
indexForHandle(int handle)
boolean
isSendTablesContainer()
int
serialForHandle(int handle)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface skadistats.clarity.model.EngineType
determineLastTick, embeddedPacketClassForKind, emitHeader, getExpectedFullPacketInterval, getMillisPerTick, getNewFieldReader, getNextPacketInstance, isFullPacketSeekAllowed, isUserMessage, readEmbeddedKind, readHeader, skipHeader, userMessagePacketClassForKind
-
-
-
-
Field Detail
-
packetReader
@Insert protected PacketReader packetReader
-
-
Method Detail
-
getId
public EngineId getId()
- Specified by:
getId
in interfaceEngineType
-
isSendTablesContainer
public boolean isSendTablesContainer()
- Specified by:
isSendTablesContainer
in interfaceEngineType
-
handleDeletions
public boolean handleDeletions()
- Specified by:
handleDeletions
in interfaceEngineType
-
getIndexBits
public int getIndexBits()
- Specified by:
getIndexBits
in interfaceEngineType
-
getSerialBits
public int getSerialBits()
- Specified by:
getSerialBits
in interfaceEngineType
-
indexForHandle
public int indexForHandle(int handle)
- Specified by:
indexForHandle
in interfaceEngineType
-
serialForHandle
public int serialForHandle(int handle)
- Specified by:
serialForHandle
in interfaceEngineType
-
handleForIndexAndSerial
public int handleForIndexAndSerial(int index, int serial)
- Specified by:
handleForIndexAndSerial
in interfaceEngineType
-
emptyHandle
public int emptyHandle()
- Specified by:
emptyHandle
in interfaceEngineType
-
-