|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectbakutan.common.Body
public abstract class Body
フィールドの概要 | |
---|---|
static byte |
DISABLE
|
static byte |
ENABLE
|
static byte |
SET
|
static int |
STATE_COLLIDABLE
衝突する壁の状態を表す定数。 |
static int |
STATE_DEAD
ダウン状態を表す定数。 |
static int |
STATE_FIREWALL
炎を止める壁の状態を表す定数(未使用)。 |
static int |
STATE_INVISIBLE
不可視の状態を表す定数。 |
static int |
STATE_LIFE
体力を持つキャラクタのであることを表す定数。 |
static int |
STATE_MARKER
マーキング状態を表す定数(未使用)。 |
static int |
STATE_WIN
勝利状態を表す定数(未使用)。 |
コンストラクタの概要 | |
---|---|
Body(byte type,
int optionNum)
新しいBodyインスタンスを作成する。 |
メソッドの概要 | |
---|---|
void |
actionForClient(bakutan.common.event.BodyEvent bodyEvent,
ClientBody mybody,
bakutan.common.graphics.CharacterImageBundle cib,
bakutan.common.graphics.EffectBundle eb,
BUserInterface ui,
long currenttime,
BVector2f bufferCenter)
|
void |
addActionLockEnergy(float energy,
int actionLock)
|
void |
disableState(int state)
このインスタンスの指定した状態のみfalseに設定する。 |
boolean |
doPushReport()
|
void |
drawCharacter(java.awt.Graphics g,
long currenttime,
bakutan.common.graphics.CharacterImageBundle cib,
bakutan.common.graphics.EffectBundle eb)
|
void |
enableState(int state)
このインスタンスの指定した状態のみtrueに設定する。 |
boolean |
eventAction(EventHandler eventHandler,
BStage bstage,
BVector2f position,
bakutan.common.event.BodyActionEvent event)
|
void |
eventAdd(EventHandler eventHandler,
BStage bstage)
|
void |
eventArmorChange(EventHandler eventHandler,
BStage bstage,
Body from,
int type,
int value)
|
void |
eventChangeOthersArmor(EventHandler eventHandler,
BStage bstage,
Body to,
int type,
int value)
|
void |
eventCollisition(EventHandler eventHandler,
BStage bstage,
Body target)
|
void |
eventCommand(EventHandler eventHandler,
BStage bstage,
java.lang.String command)
|
void |
eventOptionChange(EventHandler eventHandler,
BStage bstage,
int type,
int value)
|
void |
eventPush(EventHandler eventHandler,
BStage bstage,
Body target)
|
void |
eventRemove(EventHandler eventHandler,
BStage bstage)
|
void |
eventStateChange(EventHandler eventHandler,
BStage bstage,
byte type,
int state)
|
int |
getActionLock()
|
short |
getActionLockTime(byte action)
|
int |
getArmor()
このインスタンスの装甲を取得する。 |
BStage |
getBstage()
|
bakutan.common.graphics.CharacterImage |
getCharacterImage()
|
abstract byte[] |
getCheckCollidType()
|
abstract byte[] |
getCheckIntersectType()
|
BVector2f |
getDirection()
このインスタンスの方向を表すBVector2fの実体を返す。 |
float |
getEnergy()
|
float |
getEnergyCharge()
|
float |
getEnergyConsumption(byte action)
|
int |
getID()
このインスタンスのBStage上の固有IDを返す。 |
long |
getLastMessageChange()
|
long |
getLastStateChange()
|
long |
getLastUpdate()
|
float |
getMaxEnergy()
|
float |
getMaxSpeed()
このインスタンスが出せる最高速度を返す。 |
java.lang.String |
getMessage()
|
java.lang.String |
getName()
名前を取得する。 |
int |
getOption(int type)
このインスタンスの指定したtypeの値を取得する。 |
int[] |
getOptions()
このインスタンスのオプションを取得する。 |
BVector2f |
getPosition()
位置のBVector2fの実態を取得する。 |
int |
getScore()
このインスタンスのスコアを取得する。 |
BShape |
getShape()
このインスタンスの形状を表すBShapeの実体を返す。 |
int |
getState()
このインスタンスの状態を表すint値を返す。 |
byte |
getType()
このBodyのタイプIDを返す。 |
BVector2f |
getVelocity()
速度のBVector2fの実体を取得する。 |
boolean |
hasArmor()
|
boolean |
hasArmorReport()
|
boolean |
hasName()
このクラスのインスタンスが固有名を持つかどうかを返す。 |
boolean |
hasOption()
|
boolean |
hasScore()
このクラスのインスタンスがスコアを持つかどうかを返す。 |
boolean |
hasState()
|
boolean |
hasVariableBCircle()
このクラスのインスタンスが可変サイズの形状データを持つかどうかを返す。 |
void |
inputData(DataManager dm,
java.io.DataInputStream in)
|
boolean |
isActionableForClient(byte action,
float energy,
int actionlock)
|
boolean |
isAnimLoop()
|
boolean |
isCheckCollidWith(Body target)
|
boolean |
isCheckIntersectWith(Body target)
|
boolean |
isInSite(BVector2f pos,
BShape shape)
|
boolean |
isLoopPosition()
|
boolean |
isState(int state)
指定した状態の値を返す。 |
void |
outputData(DataManager dm,
java.io.DataOutputStream out)
|
void |
preAdd(BStage bstage)
|
void |
set(Body body)
与えられたインスタンスの内容をこのインスタンスにコピーする。 |
void |
setActionLock(int actionLock)
|
void |
setAnimLoop(boolean animLoop)
|
void |
setArmor(int armor)
|
void |
setBstage(BStage bstage)
|
void |
setCharacterImage(bakutan.common.graphics.CharacterImage characterImage)
|
void |
setCurrentTime(long currenttime)
|
void |
setDirection(BVector2f direction)
|
void |
setEnergy(float energy)
|
void |
setID(int id)
|
void |
setLastStateChange(long lastStateChange)
|
void |
setMessage(long lastMessageChange,
java.lang.String message)
|
void |
setName(java.lang.String name)
|
void |
setOption(int type,
int value)
|
void |
setPosition(BVector2f position)
|
void |
setScore(int score)
|
void |
setShape(BShape polygon)
|
void |
setState(int state)
このインスタンスの状態を表すint値を設定する。 |
void |
setType(byte image)
|
void |
setVelocity(BVector2f velocity)
|
void |
setWithoutPosition(Body body)
与えられたインスタンスの内容をこのインスタンスにコピーする。 |
void |
update(long currenttime)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int STATE_DEAD
public static final int STATE_COLLIDABLE
public static final int STATE_INVISIBLE
public static final int STATE_FIREWALL
public static final int STATE_LIFE
public static final int STATE_WIN
public static final int STATE_MARKER
public static final byte SET
public static final byte ENABLE
public static final byte DISABLE
コンストラクタの詳細 |
---|
public Body(byte type, int optionNum)
メソッドの詳細 |
---|
public boolean hasName()
public boolean hasVariableBCircle()
public boolean hasState()
public boolean hasArmor()
public boolean hasArmorReport()
public boolean hasOption()
public boolean hasScore()
public void set(Body body)
body
- 元となるインスタンスpublic void setWithoutPosition(Body body)
body
- 元となるインスタンスpublic long getLastUpdate()
public void setCurrentTime(long currenttime)
public boolean isLoopPosition()
public void update(long currenttime)
public long getLastStateChange()
public void setLastStateChange(long lastStateChange)
public void setVelocity(BVector2f velocity)
public BVector2f getVelocity()
public void setPosition(BVector2f position)
public BVector2f getPosition()
public java.lang.String getName()
public void setName(java.lang.String name)
public BShape getShape()
public void setShape(BShape polygon)
public byte getType()
public void setType(byte image)
public int getID()
public void setID(int id)
public int getState()
getState()
,
isState(int)
public void setState(int state)
state
- 設定するインスタンスの状態enableState(int)
,
disableState(int)
public void enableState(int state)
state
- 設定する状態のIDSTATE_COLLIDABLE
,
STATE_DEAD
,
STATE_FIREWALL
,
STATE_LIFE
,
STATE_INVISIBLE
public void disableState(int state)
state
- 設定する状態のIDSTATE_COLLIDABLE
,
STATE_DEAD
,
STATE_FIREWALL
,
STATE_LIFE
,
STATE_INVISIBLE
public boolean isState(int state)
state
- 欲しい状態のID
STATE_COLLIDABLE
,
STATE_DEAD
,
STATE_FIREWALL
,
STATE_LIFE
,
STATE_INVISIBLE
public int[] getOptions()
public void setOption(int type, int value)
public int getOption(int type)
type
- 得ようとするtypeのID
public int getArmor()
public int getScore()
public void setScore(int score)
public void setArmor(int armor)
public void drawCharacter(java.awt.Graphics g, long currenttime, bakutan.common.graphics.CharacterImageBundle cib, bakutan.common.graphics.EffectBundle eb)
public java.lang.String getMessage()
public void setMessage(long lastMessageChange, java.lang.String message)
public long getLastMessageChange()
public bakutan.common.graphics.CharacterImage getCharacterImage()
public void setCharacterImage(bakutan.common.graphics.CharacterImage characterImage)
public BStage getBstage()
public void setBstage(BStage bstage)
public float getMaxSpeed()
public BVector2f getDirection()
public void setDirection(BVector2f direction)
public abstract byte[] getCheckCollidType()
public abstract byte[] getCheckIntersectType()
public boolean isCheckCollidWith(Body target)
public boolean isCheckIntersectWith(Body target)
public boolean doPushReport()
public void actionForClient(bakutan.common.event.BodyEvent bodyEvent, ClientBody mybody, bakutan.common.graphics.CharacterImageBundle cib, bakutan.common.graphics.EffectBundle eb, BUserInterface ui, long currenttime, BVector2f bufferCenter)
public void eventCollisition(EventHandler eventHandler, BStage bstage, Body target)
public void eventPush(EventHandler eventHandler, BStage bstage, Body target)
public boolean eventAction(EventHandler eventHandler, BStage bstage, BVector2f position, bakutan.common.event.BodyActionEvent event)
public void eventOptionChange(EventHandler eventHandler, BStage bstage, int type, int value)
public void eventArmorChange(EventHandler eventHandler, BStage bstage, Body from, int type, int value)
public void eventChangeOthersArmor(EventHandler eventHandler, BStage bstage, Body to, int type, int value)
public void eventStateChange(EventHandler eventHandler, BStage bstage, byte type, int state)
public void eventAdd(EventHandler eventHandler, BStage bstage)
public void eventRemove(EventHandler eventHandler, BStage bstage)
public void eventCommand(EventHandler eventHandler, BStage bstage, java.lang.String command)
public void preAdd(BStage bstage)
public boolean isAnimLoop()
public void setAnimLoop(boolean animLoop)
public short getActionLockTime(byte action)
public float getEnergyConsumption(byte action)
public float getEnergyCharge()
public float getMaxEnergy()
public int getActionLock()
public void setActionLock(int actionLock)
public float getEnergy()
public void setEnergy(float energy)
public void addActionLockEnergy(float energy, int actionLock)
public boolean isActionableForClient(byte action, float energy, int actionlock)
public boolean isInSite(BVector2f pos, BShape shape)
public void outputData(DataManager dm, java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public void inputData(DataManager dm, java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |