toggle menu
KStg
1.0-SNAPSHOT
jvm
switch theme
search in API
KStg
/
top.kkoishi.stg.logic
/
ObjectPool
Object
Pool
object
ObjectPool
An object pool used to store the game objects like UI, player, enemies, bullets and so on.
Author
KKoishi_
Members
Functions
add
Bullet
Link copied to clipboard
fun
addBullet
(
b
:
Bullet
)
add
Loading
Content
Link copied to clipboard
fun
addLoadingContent
(
o
:
Object
)
add
Object
Link copied to clipboard
fun
addObject
(
o
:
Object
)
add
UIObject
Link copied to clipboard
fun
addUIObject
(
o
:
Object
)
bullets
Link copied to clipboard
fun
bullets
(
)
:
Iterator
<
Bullet
>
clear
All
Link copied to clipboard
fun
clearAll
(
)
clear
Bullets
Link copied to clipboard
fun
clearBullets
(
)
clear
Objects
Link copied to clipboard
fun
clearObjects
(
)
contains
Link copied to clipboard
fun
contains
(
o
:
Object
)
:
Boolean
contains
UIObject
Link copied to clipboard
fun
containsUIObject
(
o
:
Object
)
:
Boolean
count
Bullets
Link copied to clipboard
fun
countBullets
(
)
:
Int
loading
Contents
Link copied to clipboard
fun
loadingContents
(
)
:
Iterator
<
Object
>
objects
Link copied to clipboard
fun
objects
(
)
:
Iterator
<
Object
>
player
Link copied to clipboard
fun
player
(
)
:
Player
fun
player
(
p
:
Player
)
remove
Bullet
Link copied to clipboard
fun
removeBullet
(
index
:
Int
)
remove
Object
Link copied to clipboard
fun
removeObject
(
index
:
Int
)
ui
Objects
Link copied to clipboard
fun
uiObjects
(
)
:
Iterator
<
Object
>
unuse
Sub
Chunk
Link copied to clipboard
fun
unuseSubChunk
(
)
use
Sub
Chunk
Link copied to clipboard
fun
useSubChunk
(
)
using
Sub
Chunk
Link copied to clipboard
fun
usingSubChunk
(
)
:
Boolean