Pokemon3D Script API Documentation

Daycare

API documention for the Prototype Daycare.
Source code

Usage

var instance = new Daycare(args);
...
instance.method(args);

Index


Constructor

Constructor constructor

Arguments: int idUsage: var d = new Daycare(id);

Variables

Variable daycareId

Type: intUsage:
- get: var daycareId = d.daycareId;
- set: d.daycareId = daycareId;

Getters & Setters

Getter (get) canBreed

Type: boolUsage: var canBreed = d.canBreed;

Getter (get) hasEgg

Type: boolUsage: var hasEgg = d.hasEgg;

Getter (get) pokemonCount

Type: intUsage: var pokemonCount = d.pokemonCount;

Methods

call

Return: voidUsage: d.call();

cleanData

Return: voidUsage: d.cleanData();

clear

Return: voidUsage: d.clear();

getGrownLevels

Return: intArguments: int pokemonIndexUsage: var result = d.getGrownLevels(pokemonIndex);

putPokemon

Return: voidArguments: int daycareIndex, Pokemon pokemonUsage: d.putPokemon(daycareIndex, pokemon);

takeEgg

Return: Pokemon or undefinedUsage: var result = d.takeEgg();

takePokemon

Return: Pokemon or undefinedArguments: int pokemonIndexUsage: var result = d.takePokemon(pokemonIndex);

Indexers

Indexer (get) indexer

Return: Pokemon or undefinedArguments: int pokemonIndexUsage: var result = d[pokemonIndex];