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 | Protected Member Functions | Protected Attributes | Package Functions | Properties | List of all members
XSSLG.UnitBase Class Reference

战斗单位基类 More...

Inheritance diagram for XSSLG.UnitBase:
XSSLG.Unit XSSLG.AIUnit

Public Member Functions

Stat GetStat ()
 计算后的属性 More...
 
 UnitBase (Role role, GroupType group)
 
void Destroy ()
 结束生命周期 More...
 
virtual void SetActived ()
 
bool IsActived ()
 
void SetDead ()
 
bool IsDead ()
 
void SetAttacked ()
 
bool IsAttacked ()
 
void SetMoved ()
 
bool IsMoved ()
 
bool CanWalkThrough (UnitBase unit)
 能否穿过,敌人算墙,会影响行走路径 More...
 
List< Vector3GetMoveRegion ()
 get the unit move region More...
 
virtual void OnGameStart ()
 
virtual void OnTurnStart (SkillUpdateData data=null)
 
virtual void OnTurnEnd ()
 

Protected Member Functions

List< Vector3FindPath (XSTile tile)
 找到路径去指定位置 More...
 

Protected Attributes

int _flag = 0
 各种状态标记 More...
 

Package Functions

void OnGameEnd ()
 

Properties

abstract Vector3 WorldPos [get, set]
 
Role Role [get]
 绑定的角色数据 More...
 
GroupType Group [get, protected set]
 势力 More...
 
NormalTable Table = new NormalTable() [get, private set]
 
Dictionary< Vector3Int, List< Vector3 > > CachedPaths [get, set]
 缓存的所有路径 More...
 

Detailed Description

战斗单位基类

Constructor & Destructor Documentation

◆ UnitBase()

XSSLG.UnitBase.UnitBase ( Role  role,
GroupType  group 
)
inline

Member Function Documentation

◆ CanWalkThrough()

bool XSSLG.UnitBase.CanWalkThrough ( UnitBase  unit)
inline

能否穿过,敌人算墙,会影响行走路径

Parameters
unit单位

◆ Destroy()

void XSSLG.UnitBase.Destroy ( )
inline

结束生命周期

◆ FindPath()

List<Vector3> XSSLG.UnitBase.FindPath ( XSTile  tile)
inlineprotected

找到路径去指定位置

Parameters
path找到路径

◆ GetMoveRegion()

List<Vector3> XSSLG.UnitBase.GetMoveRegion ( )
inline

get the unit move region

Returns

◆ GetStat()

Stat XSSLG.UnitBase.GetStat ( )
inline

计算后的属性

◆ IsActived()

bool XSSLG.UnitBase.IsActived ( )

◆ IsAttacked()

bool XSSLG.UnitBase.IsAttacked ( )

◆ IsDead()

bool XSSLG.UnitBase.IsDead ( )

◆ IsMoved()

bool XSSLG.UnitBase.IsMoved ( )

◆ OnGameEnd()

void XSSLG.UnitBase.OnGameEnd ( )
inlinepackage

◆ OnGameStart()

virtual void XSSLG.UnitBase.OnGameStart ( )
inlinevirtual

◆ OnTurnEnd()

virtual void XSSLG.UnitBase.OnTurnEnd ( )
inlinevirtual

◆ OnTurnStart()

virtual void XSSLG.UnitBase.OnTurnStart ( SkillUpdateData  data = null)
inlinevirtual

◆ SetActived()

virtual void XSSLG.UnitBase.SetActived ( )
virtual

◆ SetAttacked()

void XSSLG.UnitBase.SetAttacked ( )

◆ SetDead()

void XSSLG.UnitBase.SetDead ( )

◆ SetMoved()

void XSSLG.UnitBase.SetMoved ( )

Member Data Documentation

◆ _flag

int XSSLG.UnitBase._flag = 0
protected

各种状态标记

Property Documentation

◆ CachedPaths

Dictionary<Vector3Int, List<Vector3> > XSSLG.UnitBase.CachedPaths
getsetprivate

缓存的所有路径

◆ Group

GroupType XSSLG.UnitBase.Group
getprotected set

势力

◆ Role

Role XSSLG.UnitBase.Role
get

绑定的角色数据

◆ Table

NormalTable XSSLG.UnitBase.Table = new NormalTable()
getprivate set

◆ WorldPos

abstract Vector3 XSSLG.UnitBase.WorldPos
getset

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