v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
34
source/game/interfaces/StarInteractiveEntity.hpp
Normal file
34
source/game/interfaces/StarInteractiveEntity.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef STAR_INTERACTIVE_ENTITY_HPP
|
||||
#define STAR_INTERACTIVE_ENTITY_HPP
|
||||
|
||||
#include "StarInteractionTypes.hpp"
|
||||
#include "StarEntity.hpp"
|
||||
#include "StarQuestDescriptor.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(InteractiveEntity);
|
||||
|
||||
class InteractiveEntity : public virtual Entity {
|
||||
public:
|
||||
// Interaction always takes place on the *server*, whether the interactive
|
||||
// entity is master or slave there.
|
||||
virtual InteractAction interact(InteractRequest const& request) = 0;
|
||||
|
||||
// Defaults to metaBoundBox
|
||||
virtual RectF interactiveBoundBox() const;
|
||||
|
||||
// Defaults to true
|
||||
virtual bool isInteractive() const;
|
||||
|
||||
// Defaults to empty
|
||||
virtual List<QuestArcDescriptor> offeredQuests() const;
|
||||
virtual StringSet turnInQuests() const;
|
||||
|
||||
// Defaults to position()
|
||||
virtual Vec2F questIndicatorPosition() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue