C# Class SkillTree

Show file Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
image UnityEngine.Texture2D
isSkillOpen bool
nodePositions List
position Rect
target SkillTreeNode,

Protected Properties

Property Type Description
actionBar ActionBar,
player Player,
skillTree List

Public Methods

Method Description
createSkillTree ( ) : void
findPlayer ( System playerType ) : void
inBoundaries ( ) : bool
setPlayer ( Player, p ) : void

Protected Methods

Method Description
Awake ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void
addSkillTreeNode ( System skill, string name, string desc, Rect pos, Texture2D img ) : SkillTreeNode,
checkTargetAction ( ) : void
drawSkillTree ( ) : void
drawSkillTreeNodes ( ) : void
equipSkill ( ) : void
inHeightBoundaries ( ) : bool
inWidthBoundaries ( ) : bool
initializeGUI ( ) : void
mousePositionInSkillTree ( ) : Vector2
onSkillNodeHover ( ) : void
setNodePositionOffsets ( ) : void
setSkillTreeNodeLinks ( SkillTreeNode, parent, SkillTreeNode, child ) : void
toggleTab ( ) : void
unlockSkill ( SkillTreeNode, s ) : void

Private Methods

Method Description
addSkillComponent ( System skillType ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

OnGUI() protected method

protected OnGUI ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

addSkillTreeNode() protected method

protected addSkillTreeNode ( System skill, string name, string desc, Rect pos, Texture2D img ) : SkillTreeNode,
skill System
name string
desc string
pos Rect
img UnityEngine.Texture2D
return SkillTreeNode,

checkTargetAction() protected method

protected checkTargetAction ( ) : void
return void

createSkillTree() public method

public createSkillTree ( ) : void
return void

drawSkillTree() protected method

protected drawSkillTree ( ) : void
return void

drawSkillTreeNodes() protected method

protected drawSkillTreeNodes ( ) : void
return void

equipSkill() protected method

protected equipSkill ( ) : void
return void

findPlayer() public method

public findPlayer ( System playerType ) : void
playerType System
return void

inBoundaries() public method

public inBoundaries ( ) : bool
return bool

inHeightBoundaries() protected method

protected inHeightBoundaries ( ) : bool
return bool

inWidthBoundaries() protected method

protected inWidthBoundaries ( ) : bool
return bool

initializeGUI() protected method

protected initializeGUI ( ) : void
return void

mousePositionInSkillTree() protected method

protected mousePositionInSkillTree ( ) : Vector2
return Vector2

onSkillNodeHover() protected method

protected onSkillNodeHover ( ) : void
return void

setNodePositionOffsets() protected method

protected setNodePositionOffsets ( ) : void
return void

setPlayer() public method

public setPlayer ( Player, p ) : void
p Player,
return void

setSkillTreeNodeLinks() protected method

protected setSkillTreeNodeLinks ( SkillTreeNode, parent, SkillTreeNode, child ) : void
parent SkillTreeNode,
child SkillTreeNode,
return void

toggleTab() protected method

protected toggleTab ( ) : void
return void

unlockSkill() protected method

protected unlockSkill ( SkillTreeNode, s ) : void
s SkillTreeNode,
return void

Property Details

actionBar protected property

protected ActionBar, actionBar
return ActionBar,

image public property

public Texture2D,UnityEngine image
return UnityEngine.Texture2D

isSkillOpen public property

public bool isSkillOpen
return bool

nodePositions public property

public List nodePositions
return List

player protected property

protected Player, player
return Player,

position public property

public Rect position
return Rect

skillTree protected property

protected List skillTree
return List

target public property

public SkillTreeNode, target
return SkillTreeNode,