Class DialogueChorusValidator

java.lang.Object
com.csse3200.game.cutscene.validators.actionvalidators.DialogueChorusValidator
All Implemented Interfaces:
ActionValidator

public class DialogueChorusValidator extends Object implements ActionValidator
Implements the ActionValidator interface for concrete implementation of the validate method.

Validates dialogue chorus events against the following conditions:

  • characterIds must be a list
  • Each characterIds element that is a valid string must also correspond to a valid character (the string is a characterId)
  • text must be a valid string
  • await is valid using ValidatorUtils.validateAwait(String, ActionDTO)
  • Constructor Details

    • DialogueChorusValidator

      public DialogueChorusValidator()
  • Method Details