Package-level declarations

Types

Link copied to clipboard
abstract class BaseBoss(initialX: Int, initialY: Int, firstAction: BossAction) : Boss
Link copied to clipboard
abstract class BaseEnemy(health: Int, initialX: Int, initialY: Int) : Enemy
Link copied to clipboard
abstract class BaseItem(initialX: Int, initialY: Int, speed: Double) : Item

It is more recommend to use this replaces of Item, because you can implement certain function easily.

Link copied to clipboard
abstract class Boss(health: Int, initialX: Int, initialY: Int) : Enemy
Link copied to clipboard
abstract class Enemy(health: Int) : Entity

The basic class for enemies. It is not necessary to implement the Object.collide method, for all the collide between is checked in Player.update method.

Link copied to clipboard
abstract class Entity(health: Int) : Object

All the entities' base class.

Link copied to clipboard
abstract class Item(initialX: Int, initialY: Int) : Entity
Link copied to clipboard
interface Object

The basic class of all the render-able and calculated object.

Link copied to clipboard
abstract class Player(var initialX: Int, var initialY: Int, val invincible: Boolean = false) : Entity

The basic class of player. After reinitialize the top.kkoishi.stg.logic.ObjectPool.player, you can switch the GameStage(gameState) to STATE_PLAYING, then this class can be rendered and upgrade correctly.