-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
916 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
core/src/main/kotlin/com/github/servb/pph/pheroes/common/castle/Castle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.github.servb.pph.pheroes.common.castle | ||
|
||
import com.github.servb.pph.pheroes.common.common.MineralSetC | ||
|
||
const val CTL_INCOME: Int = 500 | ||
|
||
@ExperimentalUnsignedTypes | ||
data class CTCNSTCAP(val siz: CastleSizeMask, val type: Int) { | ||
|
||
constructor(siz: CastleSizeMask, type: CastleTypeMask) : this(siz, type.v) | ||
|
||
fun Support(_type: CastleType, _siz: CastleSize) = | ||
(type and (1 shl _type.v)) != 0 && | ||
(siz.v and (1 shl _siz.v)) != 0 | ||
} | ||
|
||
@ExperimentalUnsignedTypes | ||
data class CTLCNST_DESC_STRUCT( | ||
val name: String, | ||
val type: CastleConstructionType, | ||
val price: MineralSetC, | ||
val depend: Set<CastleConstruction>, | ||
val caps: CTCNSTCAP, | ||
val fparam: Int, | ||
val sparam: Int | ||
) |
Oops, something went wrong.