mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-22 01:44:36 -05:00
36 lines
767 B
C++
36 lines
767 B
C++
#ifndef SCRIPT_OBJ_H
|
|
#define SCRIPT_OBJ_H
|
|
|
|
#include <string>
|
|
#include "pokemon_party.h"
|
|
|
|
#define START_LINK 1
|
|
#define ERROR_TIMEOUT_ONE 2
|
|
#define ERROR_DISCONNECT 3
|
|
#define ERROR_COM_ENDED 4
|
|
#define ERROR_TIMEOUT_TWO 5
|
|
#define ERROR_COLOSSEUM 6
|
|
#define IMPORT_POKEMON 7
|
|
#define BACK_TO_MENU 8
|
|
|
|
class script_obj
|
|
{
|
|
public:
|
|
script_obj();
|
|
script_obj(std::string nText, int nNext_index);
|
|
script_obj(std::string nText, int nNext_index, int nCond_index);
|
|
script_obj(std::string nText, int nNext_index, int nCond_index, int nFalse_index);
|
|
|
|
std::string get_text();
|
|
int get_true_index();
|
|
int get_false_index();
|
|
int get_cond_id();
|
|
|
|
private:
|
|
std::string text;
|
|
int next_index;
|
|
int conditional_index;
|
|
int next_false_index;
|
|
};
|
|
|
|
#endif |