Research Article

A Framework for Adaptive Game Presenters with Emotions and Social Comments

Table 2

A generic communication protocol between the user interface and the Presenter Intelligence components.

Message IDMessage contentExplanation

Load animationsURLLoad animations from a given path
Load audioURLLoad audio files (sound effects and music) from a given path
Load imagesURLLoad images from a given path
Set emotion expressionExpression Id Instructs the presenter character to perform the respective facial expression for transitioning to the given emotion
Show commentText, position, font, size, colorInstructs the presenter to draw a text comment to screen. Arguments font, font size and color are optional
Show imageURL, position, sizeThe presenter is ordered to display an image on screen
Play audioURL, volume, repetitionsThe presenter is ordered to play an audio file
Notify audio finishedAudio notification IdWhen the audio finishes, the presenter need to notify the intelligence framework through an appropriate notification id
Play videoURL, volume, position, sizeThe presenter is ordered to play a video on the screen
Notify video finishedVideo notification IdWhen the video finishes, the presenter needs to notify the intelligence framework via calling this given function
Play animationAnimation Id, animatorUser interface framework needs to provide a way of displaying animations
Notify animation finishedAnimation notification IdWhen the audio stops, the presenter needs to notify the intelligence framework via calling this given function
Say commentComment textUses speech synthesis
Set background imageURLAllows setting the background of the presenter character
Set presenter sizeSize, positionThe presenter character may need to change size in order to emphasize on something or in order to make room for other displaying objects (like images, videos, and animations)
Set presenter positionPositionThe presenter may need to move around the screen