/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ /* * This code is based on the CRAB engine * * Copyright (c) Arvind Raja Yadav * * Licensed under MIT * */ #ifndef CRAB_PERSON_H #define CRAB_PERSON_H #include "crab/stat/StatTemplate.h" #include "crab/people/opinion.h" #include "crab/people/personbase.h" #include "crab/people/trait.h" namespace Crab { namespace pyrodactyl { namespace people { struct Person { // The id of the object Common::String _id; // Opinion of the person towards the player Opinion _opinion; // The state of the object, defines what behavior it is doing right now PersonState _state; // The stats of the character pyrodactyl::stat::StatGroup _stat; // Name of object Common::String _name; // Type of object PersonType _type; // Sometimes a person's journal entry isn't the same as their name Common::String _journalName; // If this is true, use the alternate journal name instead bool _altJournalName; // The picture of the object - DISABLED DUE TO LOW BUDGET // ImageKey pic; // The trigger areas the person is in right now Common::Array _trig; // The traits of a person Common::Array _trait; Person(); void load(rapidxml::xml_node *node, const pyrodactyl::stat::StatTemplates &stem); void reset(); void validate(); void saveState(rapidxml::xml_document<> &doc, rapidxml::xml_node *root); void loadState(rapidxml::xml_node *node); }; typedef Common::HashMap PersonMap; } // End of namespace people } // End of namespace pyrodactyl } // End of namespace Crab #endif // CRAB_PERSON_H