XSGridEditor  1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties | List of all members
XSSLG.XSTile Class Reference

tile struct to caculate path More...

Public Member Functions

 XSTile (Vector3Int tilePos, XSITileNode node)
 
 XSTile (Vector3Int tilePos, XSITileNode node, TileFunc isWalkable)
 
 XSTile (Vector3Int tilePos, XSITileNode node, TileFunc isWalkable, TileFunc canBeDustFunc)
 
virtual bool IsWalkable ()
 
virtual bool CanBeDust ()
 
virtual bool PassNearRule (XSTile tile, Vector3Int direct, int tileOffYMax)
 

Static Public Member Functions

static XSTile Default ()
 return default value More...
 

Protected Attributes

Vector3 worldPos
 

Properties

Vector3WorldPos [get, set]
 
Vector3Int TilePos = new Vector3Int() [get]
 
int Cost [get]
 tile move cost More...
 
Accessibility Access [get]
 
XSITileNode Node [get]
 this node in scene More...
 
TileFunc IsWalkableFunc = (tilePos) => true [get, set]
 the tile can walkable (the enemy will block the way) More...
 
TileFunc CanBeDustFunc = (tilePos) => true [get, set]
 Whether this tile can be the end of path (two units cannot in the same tile) More...
 
List< XSTileNearTileList = new List<XSTile>() [get]
 

Detailed Description

tile struct to caculate path

Constructor & Destructor Documentation

◆ XSTile() [1/3]

XSSLG.XSTile.XSTile ( Vector3Int  tilePos,
XSITileNode  node 
)
inline

◆ XSTile() [2/3]

XSSLG.XSTile.XSTile ( Vector3Int  tilePos,
XSITileNode  node,
TileFunc  isWalkable 
)
inline

◆ XSTile() [3/3]

XSSLG.XSTile.XSTile ( Vector3Int  tilePos,
XSITileNode  node,
TileFunc  isWalkable,
TileFunc  canBeDustFunc 
)
inline

Member Function Documentation

◆ CanBeDust()

virtual bool XSSLG.XSTile.CanBeDust ( )
virtual

◆ Default()

static XSTile XSSLG.XSTile.Default ( )
static

return default value

◆ IsWalkable()

virtual bool XSSLG.XSTile.IsWalkable ( )
virtual

◆ PassNearRule()

virtual bool XSSLG.XSTile.PassNearRule ( XSTile  tile,
Vector3Int  direct,
int  tileOffYMax 
)
inlinevirtual

Member Data Documentation

◆ worldPos

Vector3 XSSLG.XSTile.worldPos
protected

Property Documentation

◆ Access

Accessibility XSSLG.XSTile.Access
get

◆ CanBeDustFunc

TileFunc XSSLG.XSTile.CanBeDustFunc = (tilePos) => true
getsetprotected

Whether this tile can be the end of path (two units cannot in the same tile)

◆ Cost

int XSSLG.XSTile.Cost
get

tile move cost

◆ IsWalkableFunc

TileFunc XSSLG.XSTile.IsWalkableFunc = (tilePos) => true
getsetprotected

the tile can walkable (the enemy will block the way)

◆ NearTileList

List<XSTile> XSSLG.XSTile.NearTileList = new List<XSTile>()
get

◆ Node

XSITileNode XSSLG.XSTile.Node
get

this node in scene

◆ TilePos

Vector3Int XSSLG.XSTile.TilePos = new Vector3Int()
get

◆ WorldPos

Vector3? XSSLG.XSTile.WorldPos
getset

The documentation for this class was generated from the following file: