\K_Effect

Skill effect.

Represents an object from the table 'k_effect'.

Summary

Methods
Properties
Constants
__construct()
get_image()
$db
$id
$name
$is_buff
$description
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.

$id

$id : integer

Type

integer — Effect identifier.

$name

$name : string

Type

string — Effect name.

$is_buff

$is_buff : boolean

Type

boolean — Indicates if the effect is a buff.

$description

$description : string

Type

string — Effect description.

Methods

__construct()

__construct(\reocurce  $db, integer  $id) 

Constructor.

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

Parameters

\reocurce $db

Connection to the database.

integer $id

Effect identifier.

get_image()

get_image() : string

Gets the pathto the monster image. The image must be in the img/effect/ directory, and its name must be the effect id, padded with '0' to 4 digits, and the extension must be '.png'.

Returns

string —

Image URL, or a fixed unknown image.