public class Fighting
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ROUND_MAX
Round is began ROUND_MAX times
|
static java.lang.String[] |
SOUND_EFFECT |
Constructor and Description |
---|
Fighting(java.lang.String[] characterName)
Gets character's name information.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
drawImage(game.GraphicManager g,
long nowTime)
This method is called by render in Play.java.
|
void |
drawScore(game.GraphicManager g) |
void |
finalize() |
int |
getBackGroundMusicId() |
FrameData |
getFrameData(long nowTime,
KeyData keyData) |
int |
getRoundMax() |
int[][] |
getRoundScore() |
int |
getRoundScore(boolean playerNum,
int round) |
GameData |
initialize(int stageMaxXInput,
int stageMaxYInput,
java.lang.String backGroundImageName,
game.SoundManager sm,
int[] deviceType,
java.lang.String[] aiName,
image.ImageContainer ic)
Initializes fighting game.
|
void |
initRound(long nowTime)
This method must be called each round.
|
Action |
interpretationCommand(Character character,
java.util.Deque<KeyData> input) |
boolean |
isGameEnd() |
boolean |
isRoundEnd(long nowTime) |
void |
outputLog(KeyData KeyDataInput) |
void |
processingFight(KeyData KeyDataInput)
This method calls all calculation methods each frame.
|
void |
setRoundScore() |
public static final int ROUND_MAX
public static java.lang.String[] SOUND_EFFECT
public Fighting(java.lang.String[] characterName)
characterNameOne
- Name of characterspublic void close()
public void drawImage(game.GraphicManager g, long nowTime)
g
- For using Graphics methodnowTime
- public void drawScore(game.GraphicManager g)
g
- public void finalize()
finalize
in class java.lang.Object
public int getBackGroundMusicId()
public FrameData getFrameData(long nowTime, KeyData keyData)
nowTime
- keyData
- public int getRoundMax()
public int[][] getRoundScore()
public int getRoundScore(boolean playerNum, int round)
playerNum
- round
- public GameData initialize(int stageMaxXInput, int stageMaxYInput, java.lang.String backGroundImageName, game.SoundManager sm, int[] deviceType, java.lang.String[] aiName, image.ImageContainer ic)
StageMaxXInput
- Horizontal size of fighting game stage.StageMaxYInput
- Vertical size of fighting game stage.backGroundImageName
- The path to background image filepublic void initRound(long nowTime)
nowTime
- public Action interpretationCommand(Character character, java.util.Deque<KeyData> input)
character
- input
- public boolean isGameEnd()
public boolean isRoundEnd(long nowTime)
nowTime
- public void outputLog(KeyData KeyDataInput)
public void processingFight(KeyData KeyDataInput)
KeyDataInput
- Input data from all of players.public void setRoundScore()