![]() |
|
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... | |
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
| Yukar.Engine.MapCollisionBit.MapCollisionBit | ( | ) |
constructor
| Yukar.Engine.MapCollisionBit.MapCollisionBit | ( | int | collisionsBit | ) |
constructor
| collisionsBit | bit of hit detection information |
| bool Yukar.Engine.MapCollisionBit.CanMove | ( | int | order | ) |
Is it movable
| order | Acquisition order 0 is the first to 4 |
| void Yukar.Engine.MapCollisionBit.ChangeMovableStatus | ( | int | order, |
| MovableStatus | movableStatus | ||
| ) |
Change movement state
| order | The position you want to change 0 to the beginning 4 |
| movableStatus |
| void Yukar.Engine.MapCollisionBit.ChangeStairStatus | ( | int | order, |
| StairStatus | stairSatus | ||
| ) |
Change stair information
| order | Change order 0 to 4 |
| stairSatus | The state of the stairs you want to change |
| void Yukar.Engine.MapCollisionBit.ChangeWalkableTerrain | ( | int | order, |
| WalkableTerrain | wakableTerrain | ||
| ) |
Change the state of whether the attribute of the ground can walk
| order | Change order 0 to 4 |
| wakableTerrain | Terrain Walkability Attribute |
| int Yukar.Engine.MapCollisionBit.GetMovableStatus | ( | int | order | ) |
Get Move State
| order | Acquisition order 0 is the first to 4 |
| int Yukar.Engine.MapCollisionBit.GetStairStatus | ( | int | order | ) |
Get Stair State
| order | Acquisition order 0 is the first to 4 |
| void Yukar.Engine.MapCollisionBit.Initialize | ( | ) |
initialize
| bool Yukar.Engine.MapCollisionBit.IsWalkableTerrain | ( | int | order | ) |
Whether the ground attribute is walkable
| order | Acquisition order 0 is the first to 4 |
|
static |
Number of digits of movement information
|
static |
Number of digits for stair information
|
static |
number of bits per side of collision
|
static |
amount of hitbox
|
static |
Initial value of bit
|
get |
bit of hit detection information