Logo
Classes | Public Types | Public Member Functions | Static Public Attributes | Properties | List of all members
Yukar.Engine.MapCollisionBit Class Reference

The hit judgment of the terrain and map objects is summarized in bits Information (8 bits) 4 pieces are one 2 bits from the bottom of the 8 bits for information on whether or not you can walk 4 bits for information on stairs 1 bit for information on unwalkable ground 1 bit reserved More...

Classes

class  BitContent
 Bit content 8bit is assumed to be available More...
 

Public Types

enum  MovableStatus { CantMove = 0x0 , CantMoveOverTheMapObjectCheckedStandble = 0x01 , CanMove = 0x02 , Amount }
 state of being able to move More...
 
enum  StairStatus {
  None = 0x00 , PosZ = 0x01 , NegZ = 0x02 , PosX = 0x03 ,
  NegX = 0x04 , RidgePosZPoSX = 0x05 , RidgeNegZNegX = 0x06 , RidgeNegZPosX = 0x07 ,
  RidgePosZNegX = 0x08 , ValleyPosZPosX = 0x09 , ValleyNegZNegX = 0x0a , ValleyNegZPosX = 0x0b ,
  ValleyPosZNegX = 0x0c , Amount
}
 condition of stairs More...
 
enum  WalkableTerrain { CanMove = 0x00 , CantMove = 0x01 , Amount }
 Information on walkable terrain More...
 

Public Member Functions

 MapCollisionBit ()
 constructor More...
 
 MapCollisionBit (int collisionsBit)
 constructor More...
 
void Initialize ()
 initialize More...
 
bool CanMove (int order)
 Is it movable More...
 
int GetMovableStatus (int order)
 Get Move State More...
 
void ChangeMovableStatus (int order, MovableStatus movableStatus)
 Change movement state More...
 
int GetStairStatus (int order)
 Get Stair State More...
 
void ChangeStairStatus (int order, StairStatus stairSatus)
 Change stair information More...
 
bool IsWalkableTerrain (int order)
 Whether the ground attribute is walkable More...
 
void ChangeWalkableTerrain (int order, WalkableTerrain wakableTerrain)
 Change the state of whether the attribute of the ground can walk More...
 

Static Public Attributes

static readonly int InitialBit = 0x02020202
 Initial value of bit More...
 
static readonly int BitDegitNumberPerOneCollison = 8
 number of bits per side of collision More...
 
static readonly int CollisionAmount = 32 / BitDegitNumberPerOneCollison
 amount of hitbox More...
 
static readonly int BitDegitNumberOfMovableStatus = 2
 Number of digits of movement information More...
 
static readonly int BitDegitNumberOfStairStatus = 4
 Number of digits for stair information More...
 

Properties

int CollisionsBit [get]
 bit of hit detection information More...
 

Detailed Description

The hit judgment of the terrain and map objects is summarized in bits Information (8 bits) 4 pieces are one 2 bits from the bottom of the 8 bits for information on whether or not you can walk 4 bits for information on stairs 1 bit for information on unwalkable ground 1 bit reserved

Member Enumeration Documentation

◆ MovableStatus

state of being able to move

Enumerator
CantMove 
CantMoveOverTheMapObjectCheckedStandble 
CanMove 
Amount 

◆ StairStatus

condition of stairs

Enumerator
None 
PosZ 
NegZ 
PosX 
NegX 
RidgePosZPoSX 
RidgeNegZNegX 
RidgeNegZPosX 
RidgePosZNegX 
ValleyPosZPosX 
ValleyNegZNegX 
ValleyNegZPosX 
ValleyPosZNegX 
Amount 

◆ WalkableTerrain

Information on walkable terrain

Enumerator
CanMove 

can walk

CantMove 

Can not walk

Amount 

Constructor & Destructor Documentation

◆ MapCollisionBit() [1/2]

Yukar.Engine.MapCollisionBit.MapCollisionBit ( )

constructor

◆ MapCollisionBit() [2/2]

Yukar.Engine.MapCollisionBit.MapCollisionBit ( int  collisionsBit)

constructor

Parameters
collisionsBitbit of hit detection information

Member Function Documentation

◆ CanMove()

bool Yukar.Engine.MapCollisionBit.CanMove ( int  order)

Is it movable

Parameters
orderAcquisition order 0 is the first to 4
Returns
true: movable false: not movable

◆ ChangeMovableStatus()

void Yukar.Engine.MapCollisionBit.ChangeMovableStatus ( int  order,
MovableStatus  movableStatus 
)

Change movement state

Parameters
orderThe position you want to change 0 to the beginning 4
movableStatus

◆ ChangeStairStatus()

void Yukar.Engine.MapCollisionBit.ChangeStairStatus ( int  order,
StairStatus  stairSatus 
)

Change stair information

Parameters
orderChange order 0 to 4
stairSatusThe state of the stairs you want to change

◆ ChangeWalkableTerrain()

void Yukar.Engine.MapCollisionBit.ChangeWalkableTerrain ( int  order,
WalkableTerrain  wakableTerrain 
)

Change the state of whether the attribute of the ground can walk

Parameters
orderChange order 0 to 4
wakableTerrainTerrain Walkability Attribute

◆ GetMovableStatus()

int Yukar.Engine.MapCollisionBit.GetMovableStatus ( int  order)

Get Move State

Parameters
orderAcquisition order 0 is the first to 4
Returns
state of movement

◆ GetStairStatus()

int Yukar.Engine.MapCollisionBit.GetStairStatus ( int  order)

Get Stair State

Parameters
orderAcquisition order 0 is the first to 4
Returns
condition of stairs

◆ Initialize()

void Yukar.Engine.MapCollisionBit.Initialize ( )

initialize

◆ IsWalkableTerrain()

bool Yukar.Engine.MapCollisionBit.IsWalkableTerrain ( int  order)

Whether the ground attribute is walkable

Parameters
orderAcquisition order 0 is the first to 4
Returns
true: movable false: not movable

Member Data Documentation

◆ BitDegitNumberOfMovableStatus

readonly int Yukar.Engine.MapCollisionBit.BitDegitNumberOfMovableStatus = 2
static

Number of digits of movement information

◆ BitDegitNumberOfStairStatus

readonly int Yukar.Engine.MapCollisionBit.BitDegitNumberOfStairStatus = 4
static

Number of digits for stair information

◆ BitDegitNumberPerOneCollison

readonly int Yukar.Engine.MapCollisionBit.BitDegitNumberPerOneCollison = 8
static

number of bits per side of collision

◆ CollisionAmount

readonly int Yukar.Engine.MapCollisionBit.CollisionAmount = 32 / BitDegitNumberPerOneCollison
static

amount of hitbox

◆ InitialBit

readonly int Yukar.Engine.MapCollisionBit.InitialBit = 0x02020202
static

Initial value of bit

Property Documentation

◆ CollisionsBit

int Yukar.Engine.MapCollisionBit.CollisionsBit
get

bit of hit detection information