ConsoleGameEngine
1.2.1
jvm
ConsoleGameEngine
/
top.kmar.game.utils
Package-level
declarations
Types
Functions
Types
GTimer
Link copied to clipboard
class
GTimer
带修复功能的计时器
Point2D
Link copied to clipboard
data
class
Point2D
(
val
x
:
Int
,
val
y
:
Int
)
:
Comparable
<
Point2D
>
用于表示一个二维坐标
Rect2D
Link copied to clipboard
data
class
Rect2D
(
val
x
:
Int
,
val
y
:
Int
,
val
width
:
Int
,
val
height
:
Int
)
:
Comparable
<
Rect2D
>
用于表示一个矩形区域
Task
Manager
Link copied to clipboard
class
TaskManager
(
size
:
Int
)
线程安全的任务管理器
Functions
update
With
Link copied to clipboard
inline
fun
AtomicInteger
.
updateWith
(
updater
:
(
Int
)
->
Int
)
在当前值的基础上或一个数值,并复制给 Atomic。