Scripts::Scripts(AccessEngine *vm) : Manager(vm) { _resource = nullptr; _specialFunction = -1; _data = nullptr; _sequence = 0; _endFlag = false; _returnCode = 0; _scriptCommand = 0; _choice = 0; _choiceStart = 0; _charsOrg = Common::Point(0, 0); _texsOrg = Common::Point(0, 0); setOpcodes(); }
Script::Script(Memory *memory, Timer *timer, Input *input, Sound *sound, Video *video, File *file, Option *option) { this->memory = memory; this->timer = timer; this->input = input; this->sound = sound; this->video = video; this->file = file; this->option = option; image = new Image(memory, video, file); animation = new Animation(memory, timer, input, video); dialogue = new Dialogue(memory, timer, input, video, animation, option); field = new Field(memory, input, video, option); parameter = NULL; parse_level = 0; random_seed = RANDOM_SEED; setOpcodes(); }