\Run

A run.

Represents an object from the table 'run'.

Summary

Methods
Properties
Constants
__construct()
$db
$uid
$id
$dtime
$area
$stage
$difficulty
$win
$time
$mana
$energy
$crystal
$helper
$party
$item
$unit
$sd
$unit_piece
$shapeshifting
$rune
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : resource

Type

resource — Database connection.

$uid

$uid : integer

Type

integer — Player identifier.

$id

$id : integer

Type

integer — Run identifier.

$dtime

$dtime : \DateTime

Type

\DateTime — Run start datestamp.

$area

$area : \K_Area

Type

\K_Area — Area.

$stage

$stage : integer

Type

integer — Stage.

$difficulty

$difficulty : integer

Type

integer — Difficulty (only scenario and dimension hole)

$win

$win : boolean

Type

boolean — Win or lost run.

$time

$time : integer

Type

integer — Clear time, milliseconds.

$mana

$mana : integer

Type

integer — Reward mana.

$energy

$energy : integer

Type

integer — Reward energy.

$crystal

$crystal : integer

Type

integer — Reward crystal.

$helper

$helper : boolean

Type

boolean — Indicates if a frind/mentor helped.

$party

$party : array<mixed,\Unit>|array<mixed,\K_Unit>

Type

array<mixed,\Unit>|array<mixed,\K_Unit> — Uits used. If the unit is still owned, it will be a instance of Unit. If not, it will be a instance of K_Unit.

$item

$item : array<mixed,\Inventory>

Type

array<mixed,\Inventory> — Dropped items.

$unit

$unit : array<mixed,\K_Unit>

Type

array<mixed,\K_Unit> — Units dropped.

$sd

$sd : integer

Type

integer — K_Unit[] Units whose secret dungeons were found on the run.

$unit_piece

$unit_piece : array<mixed,mixed>

Type

array<mixed,mixed> — List of dropped summon pieces. Formated as: [@{see K_Unit}, amount]

$shapeshifting

$shapeshifting : integer

Type

integer — Number of shapeshifting stones dropped;

$rune

$rune : array<mixed,\Rune>

Type

array<mixed,\Rune> — List of Runes dropped.

Methods

__construct()

__construct(resource  $db, integer  $id) 

Constructor.

Searches the database and retrieves the information about the run, populating it and it's items.

Parameters

resource $db

Connection to the database.

integer $id

Run identifier.