diff options
Diffstat (limited to 'src/entities/samantha.c')
| -rw-r--r-- | src/entities/samantha.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/entities/samantha.c b/src/entities/samantha.c index c8f08f6..bc70b7a 100644 --- a/src/entities/samantha.c +++ b/src/entities/samantha.c @@ -1,4 +1,5 @@ #include "samantha.h" +#include "ui.h" void initSamantha(Entity* entity) { @@ -23,6 +24,17 @@ void updateSamantha(Entity* entity, Game* game) InteractionCommand interactWithSamantha(Entity* entity, Game* game, Selection selection) { - puts("test test"); - return INTERACTION_TALK; + InteractionChat* chat = &game->chat; + + switch (selection) + { + case SELECTION_INTERACT: + writeToInteractionChat(chat, "hihi"); + return INTERACTION_TALK; + case SELECTION_NEXT_MESSAGE: + case SELECTION_LEAVE: + return INTERACTION_END; + default: + return INTERACTION_END; + } } |
