bakutan.common
クラス BStage
java.lang.Object
bakutan.common.BStage
public abstract class BStage
- extends java.lang.Object
- 作成者:
- cattaka
メソッドの概要 |
void |
addBody(Body body)
|
abstract bakutan.common.util.BGMBundle |
createBGMBundle()
|
abstract Body |
createBodyInstance(byte bodyType)
|
abstract bakutan.common.graphics.CharacterImageBundle |
createCharacterImageBundle(java.awt.GraphicsConfiguration gc)
|
abstract ClientBody |
createClientBody()
|
abstract AIInterface |
createDefaultAIInterface()
|
abstract bakutan.common.util.SEBundle |
createSEBundle()
|
void |
drawBStage(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
bakutan.common.graphics.CharacterImageBundle cib,
bakutan.common.graphics.EffectBundle eb,
Body myBody,
Body myBodyGhost)
|
abstract void |
drawRadar(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
Body myBody,
BVector2f center)
|
abstract void |
drawScore(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
Body myBody)
|
abstract void |
drawStatus(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
ClientBody myBody,
BUserInterface ui)
|
BPickResult |
estimateCollision(Body body)
|
BPickResult |
estimateIntersection(Body body)
|
BPickResult |
estimateIntersection(Body body,
java.util.Set<Body> ignore)
|
void |
eventAction(int action)
|
void |
eventClientPostAdd(long currenttime,
Body body)
|
void |
eventClientPreAdd(long currenttime,
Body body)
|
Body |
getBody(int id)
|
Body[] |
getBodys()
|
Body[] |
getBodysByType(byte type)
|
abstract Body[] |
getBodysHasScore()
|
java.util.Iterator<Body> |
getBodysIterator()
|
java.util.Iterator |
getBodysIteratorByType(byte type)
|
int |
getBodysNum()
|
abstract byte[] |
getBodyTypeArray()
|
BVector2f |
getBufferCenter()
|
java.awt.Dimension |
getBufferOffset()
|
int |
getClientActionHook(Body myBody,
int action)
|
long |
getCurrentTime()
|
BShape |
getDrawMask()
|
EventHandler |
getEventHandler()
|
EventThread |
getEventThread()
|
BVector2f[] |
getFreePoint()
|
abstract java.lang.String |
getGameName()
|
int |
getMaxClients()
|
int |
getNextID()
|
BVector2f |
getRandomeFreePoint()
|
BVector2f |
getRandomeSpawnPoint()
|
abstract byte |
getRemoteClientBodyType()
|
BVector2f |
getSize()
|
abstract Body[] |
getSortedBodys()
|
BVector2f[] |
getSpawnPoint()
|
java.lang.String |
getStageMessage(byte type)
|
byte[] |
getStageMessageTypes()
|
boolean |
isBufferCenterLock()
|
boolean |
isDrawOption(int type)
|
boolean |
isIntersectOther(Body body,
int state)
|
boolean |
isIntersectOther(BVector2f position,
BShape pg,
int state)
|
abstract boolean |
isRemoteClientBody(byte type)
|
abstract void |
loadBStageFile(java.net.URL url)
|
void |
pickAll(Body body,
java.util.Set<Body> destination)
|
void |
pickAllByType(BVector2f pos,
BShape pg,
byte type,
java.util.Set<Body> destination)
|
BPickIntersection |
pickClosest(BVector2f start,
BVector2f end,
int state)
|
void |
pickIntersection(Body body,
java.util.Set<Body> destination)
|
boolean |
removeBody(Body body)
|
void |
removeStageMessage(byte type)
|
void |
setBufferCenter(BVector2f bufferCenter)
|
void |
setDrawOption(boolean flag,
int type)
|
void |
setEventHandler(EventHandler eventHandler)
|
void |
setFreePoint(BVector2f[] freePoint)
|
void |
setMaxClients(int maxClients)
|
void |
setSize(BVector2f size)
|
void |
setSpawnPoint(BVector2f[] spawnPoint)
|
void |
setStageMessage(byte type,
java.lang.String message)
|
void |
updateAll(long currenttime)
|
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BStage
public BStage()
loadBStageFile
public abstract void loadBStageFile(java.net.URL url)
throws java.io.IOException
- 例外:
java.io.IOException
createDefaultAIInterface
public abstract AIInterface createDefaultAIInterface()
getBodyTypeArray
public abstract byte[] getBodyTypeArray()
createBodyInstance
public abstract Body createBodyInstance(byte bodyType)
createClientBody
public abstract ClientBody createClientBody()
isRemoteClientBody
public abstract boolean isRemoteClientBody(byte type)
getRemoteClientBodyType
public abstract byte getRemoteClientBodyType()
createCharacterImageBundle
public abstract bakutan.common.graphics.CharacterImageBundle createCharacterImageBundle(java.awt.GraphicsConfiguration gc)
createSEBundle
public abstract bakutan.common.util.SEBundle createSEBundle()
createBGMBundle
public abstract bakutan.common.util.BGMBundle createBGMBundle()
getGameName
public abstract java.lang.String getGameName()
getClientActionHook
public int getClientActionHook(Body myBody,
int action)
getBufferCenter
public BVector2f getBufferCenter()
setBufferCenter
public void setBufferCenter(BVector2f bufferCenter)
getBufferOffset
public java.awt.Dimension getBufferOffset()
isBufferCenterLock
public boolean isBufferCenterLock()
getDrawMask
public BShape getDrawMask()
drawBStage
public void drawBStage(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
bakutan.common.graphics.CharacterImageBundle cib,
bakutan.common.graphics.EffectBundle eb,
Body myBody,
Body myBodyGhost)
drawScore
public abstract void drawScore(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
Body myBody)
drawStatus
public abstract void drawStatus(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
ClientBody myBody,
BUserInterface ui)
drawRadar
public abstract void drawRadar(java.awt.Graphics bg,
long currenttime,
java.awt.Dimension size,
Body myBody,
BVector2f center)
isDrawOption
public boolean isDrawOption(int type)
setDrawOption
public void setDrawOption(boolean flag,
int type)
addBody
public void addBody(Body body)
removeBody
public boolean removeBody(Body body)
getBody
public Body getBody(int id)
getBodysNum
public int getBodysNum()
getBodys
public Body[] getBodys()
getBodysByType
public Body[] getBodysByType(byte type)
getBodysIterator
public java.util.Iterator<Body> getBodysIterator()
getBodysIteratorByType
public java.util.Iterator getBodysIteratorByType(byte type)
getBodysHasScore
public abstract Body[] getBodysHasScore()
getSortedBodys
public abstract Body[] getSortedBodys()
updateAll
public void updateAll(long currenttime)
setStageMessage
public void setStageMessage(byte type,
java.lang.String message)
getStageMessageTypes
public byte[] getStageMessageTypes()
getStageMessage
public java.lang.String getStageMessage(byte type)
removeStageMessage
public void removeStageMessage(byte type)
pickClosest
public BPickIntersection pickClosest(BVector2f start,
BVector2f end,
int state)
isIntersectOther
public boolean isIntersectOther(Body body,
int state)
isIntersectOther
public boolean isIntersectOther(BVector2f position,
BShape pg,
int state)
pickAll
public void pickAll(Body body,
java.util.Set<Body> destination)
pickAllByType
public void pickAllByType(BVector2f pos,
BShape pg,
byte type,
java.util.Set<Body> destination)
estimateCollision
public BPickResult estimateCollision(Body body)
estimateIntersection
public BPickResult estimateIntersection(Body body)
estimateIntersection
public BPickResult estimateIntersection(Body body,
java.util.Set<Body> ignore)
pickIntersection
public void pickIntersection(Body body,
java.util.Set<Body> destination)
getEventThread
public EventThread getEventThread()
getCurrentTime
public long getCurrentTime()
getNextID
public int getNextID()
getRandomeSpawnPoint
public BVector2f getRandomeSpawnPoint()
getSpawnPoint
public BVector2f[] getSpawnPoint()
setSpawnPoint
public void setSpawnPoint(BVector2f[] spawnPoint)
getEventHandler
public EventHandler getEventHandler()
setEventHandler
public void setEventHandler(EventHandler eventHandler)
getSize
public BVector2f getSize()
setSize
public void setSize(BVector2f size)
getMaxClients
public int getMaxClients()
setMaxClients
public void setMaxClients(int maxClients)
getFreePoint
public BVector2f[] getFreePoint()
setFreePoint
public void setFreePoint(BVector2f[] freePoint)
getRandomeFreePoint
public BVector2f getRandomeFreePoint()
eventAction
public void eventAction(int action)
eventClientPreAdd
public void eventClientPreAdd(long currenttime,
Body body)
eventClientPostAdd
public void eventClientPostAdd(long currenttime,
Body body)