public class StopMusic extends Event
| Modifier | Constructor and Description |
|---|---|
protected |
StopMusic(Identification source)
Creates a new Event Object
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<StopMusic> |
createStopMusic(Identification source,
Identification target)
creates a new StopRequest
|
static boolean |
verify(EventModel eventModel,
Identifiable player)
verifies that the StopMusicRequest is correct and checks whether the you are meant to react to it
|
addDescriptor, addEventLifeCycleListener, addResource, addResources, containsDescriptor, createEvent, createEvent, getAllInformations, getDescriptors, getEventBehaviourController, getID, getListResourceContainer, getSource, getType, lifecycleCallback, replaceDescriptors, setDescriptors, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOwnerpublic static final String ID
protected StopMusic(Identification source) throws IllegalArgumentException
source - the source of the Event, most likely a this reference.IllegalArgumentException - if one of the Arguments is null or emptypublic static Optional<StopMusic> createStopMusic(Identification source, Identification target)
source - the callertarget - the target who should start playingpublic static boolean verify(EventModel eventModel, Identifiable player)
eventModel - the EventModel to check againstplayer - the identifiableCopyright © 2016. All rights reserved.