mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-22 01:44:36 -05:00
28 lines
633 B
C++
28 lines
633 B
C++
#ifndef SCRIPT_OBJ_H
|
|
#define SCRIPT_OBJ_H
|
|
|
|
#include <string>
|
|
#include "pokemon_party.h"
|
|
|
|
class script_obj
|
|
{
|
|
public:
|
|
script_obj();
|
|
script_obj(std::string_view nText, int nNext); // For dialogue
|
|
script_obj(int nRun, int nNext); // For commands
|
|
script_obj(int nRun, int nNext_if_true, int nNext_if_false); // for conditionals
|
|
|
|
std::string get_text();
|
|
int get_true_index();
|
|
int get_false_index();
|
|
int get_cond_id();
|
|
|
|
private:
|
|
std::string_view text;
|
|
bool has_text = false;
|
|
int next_index;
|
|
int conditional_index;
|
|
int next_false_index;
|
|
};
|
|
|
|
#endif |