trait Sc4Path extends DbpfType
- Source
- Sc4Path.scala
- Alphabetic
- By Inheritance
- Sc4Path
- DbpfType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
data: Array[Byte]
the uncompressed raw byte data of the entry
the uncompressed raw byte data of the entry
- Attributes
- protected
- Definition Classes
- DbpfType
- abstract def decFormat: Option[DecimalFormat]
- abstract def paths: Seq[Path]
- abstract def stopPaths: Seq[StopPath]
- abstract def terrainVariance: Boolean
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*(rf: RotFlip): Sc4Path
Rotates and flips all paths and stop paths in this
Sc4Path
.Rotates and flips all paths and stop paths in this
Sc4Path
. Ifrf.flipped
, the paths will also be reversed (as would be expected). -
def
++(that: Sc4Path): Sc4Path
Combines two paths files by appending
that
tothis
.Combines two paths files by appending
that
tothis
. The terrain variance will be set if it was set for either of the two paths. Automatically renumbers the class numbers to ensure that no class number is assigned twice. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
convert[B <: DbpfType](implicit eh: ExceptionHandler, conv: Converter[DbpfType, B]): ![B, DbpfDecodeFailedException]
Deprecated: Prefer
convertTo
instead.Deprecated: Prefer
convertTo
instead.Converts this type to
B
. The implicit converter is usually provided by the companion object ofB
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- B
the type which this type gets converted to
- Definition Classes
- DbpfType
- Exceptions thrown
DbpfDecodeFailedException
if this type cannot be converted to typeB
structurally
-
def
convertTo[B <: DbpfType](dbpfType: DbpfTypeCompanion[B])(implicit eh: ExceptionHandler): ![B, DbpfDecodeFailedException]
Convert this type to
B
.Convert this type to
B
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- B
the type which this type gets converted to
- dbpfType
(the companion object of) the type which this type gets converted to
- Definition Classes
- DbpfType
- Exceptions thrown
DbpfDecodeFailedException
if this type cannot be converted to typeB
structurally
- def copy(terrainVariance: Boolean = terrainVariance, paths: Seq[Path] = paths, stopPaths: Seq[StopPath] = stopPaths, decFormat: Option[DecimalFormat] = decFormat): Sc4Path
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
renumberClassNumbers: Sc4Path
Rebuilds the class numbers of the paths and stop paths in this
Sc4Path
from scratch.Rebuilds the class numbers of the paths and stop paths in this
Sc4Path
from scratch. This may be necessary so that no class number is assigned twice for a given class of paths, i.e. transport type, entry, exit, UK-flag and class number must all be distinct for each path (and the class number is the only variable).The new class numbers will be 0 for paths that are singular in a class, and will be numbered sequentially from 1 otherwise.
-
def
shiftHeight(t: Float): Sc4Path
Shifts the path vertically by translation
t
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Sc4Path → AnyRef → Any
- def validateClassNumbers: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()