Завершить инженерный кандидат Stage 5
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.projectsacrifice.game;
|
||||
|
||||
/** Semantic audio events; Android synthesis is an implementation detail. */
|
||||
public enum AudioCue {
|
||||
UI_TAP(Channel.EFFECTS, 1),
|
||||
FOOTSTEP(Channel.EFFECTS, 3),
|
||||
JUMP(Channel.EFFECTS, 2),
|
||||
SWITCH(Channel.EFFECTS, 3),
|
||||
DOOR(Channel.EFFECTS, 2),
|
||||
DEATH_IMPACT(Channel.EFFECTS, 5),
|
||||
DEATH_VOICE(Channel.VOICE, 4),
|
||||
RESPAWN_VOICE(Channel.VOICE, 3),
|
||||
GOAL_VOICE(Channel.VOICE, 3),
|
||||
MUSIC_PULSE(Channel.MUSIC, 4);
|
||||
|
||||
public enum Channel { MUSIC, EFFECTS, VOICE }
|
||||
|
||||
private final Channel channel;
|
||||
private final int variants;
|
||||
|
||||
AudioCue(Channel channel, int variants) {
|
||||
this.channel = channel;
|
||||
this.variants = variants;
|
||||
}
|
||||
|
||||
public Channel channel() { return channel; }
|
||||
public int variants() { return variants; }
|
||||
}
|
||||
Reference in New Issue
Block a user