platformer
Public Member Functions | Public Attributes | List of all members
UnityPlatformer.RopeSection Class Reference

Internal Behaviour to create ropes. More...

Inheritance diagram for UnityPlatformer.RopeSection:
UnityPlatformer.BoxTileTrigger UnityPlatformer.Physhic2DMonoBehaviour

Public Member Functions

virtual Vector3 GetTop ()
 Get real-world-coordinates top More...
 
virtual Vector3 GetBottom ()
 Get real-world-coordinates bottom More...
 
override Vector3 GetCenter ()
 Get real-world-coordinates center More...
 
virtual Vector3 GetPositionInSection (float position)
 Get real-world-coordinates position given the position in the section from 0 to 1 More...
 
override void CharacterEnter (Character p)
 Add character to the list More...
 
virtual void Dismount (Character p)
 Dismount rope More...
 
override void CharacterExit (Character p)
 Remove character from the list More...
 
- Public Member Functions inherited from UnityPlatformer.BoxTileTrigger
override void Start ()
 Force BoxCollider2D to be trigger using: Utils.KinematicTrigger and initialize character list More...
 
virtual void OnDestroy ()
 exit all player More...
 
virtual void CharacterStay (Character p)
 Do nothing More...
 
virtual void OnTriggerEnter2D (Collider2D o)
 if Hitbox with EnterAreas enter -> CharacterEnter More...
 
virtual void OnTriggerExit2D (Collider2D o)
 if Hitbox with EnterAreas leave -> CharacterExit More...
 
virtual void OnTriggerStay2D (Collider2D o)
 if Hitbox with EnterAreas leave -> CharacterExit More...
 

Public Attributes

int index
 Index in the rope More...
 
Rope rope
 Rope where this belong More...
 
- Public Attributes inherited from UnityPlatformer.BoxTileTrigger
BoxCollider2D body
 cached BoxCollider2D component More...
 
Character [] characters
 List of character in the Tile More...
 
int charCount
 How many character are in the Tile More...
 
- Public Attributes inherited from UnityPlatformer.Physhic2DMonoBehaviour
bool debug = false
 Display collider as flat color More...
 

Detailed Description

Internal Behaviour to create ropes.

Member Function Documentation

◆ CharacterEnter()

override void UnityPlatformer.RopeSection.CharacterEnter ( Character  p)
inlinevirtual

Add character to the list

Reimplemented from UnityPlatformer.BoxTileTrigger.

◆ CharacterExit()

override void UnityPlatformer.RopeSection.CharacterExit ( Character  p)
inlinevirtual

Remove character from the list

Reimplemented from UnityPlatformer.BoxTileTrigger.

◆ Dismount()

virtual void UnityPlatformer.RopeSection.Dismount ( Character  p)
inlinevirtual

Dismount rope

◆ GetBottom()

virtual Vector3 UnityPlatformer.RopeSection.GetBottom ( )
inlinevirtual

Get real-world-coordinates bottom

◆ GetCenter()

override Vector3 UnityPlatformer.RopeSection.GetCenter ( )
inlinevirtual

Get real-world-coordinates center

Reimplemented from UnityPlatformer.BoxTileTrigger.

◆ GetPositionInSection()

virtual Vector3 UnityPlatformer.RopeSection.GetPositionInSection ( float  position)
inlinevirtual

Get real-world-coordinates position given the position in the section from 0 to 1

◆ GetTop()

virtual Vector3 UnityPlatformer.RopeSection.GetTop ( )
inlinevirtual

Get real-world-coordinates top

Member Data Documentation

◆ index

int UnityPlatformer.RopeSection.index

Index in the rope

◆ rope

Rope UnityPlatformer.RopeSection.rope

Rope where this belong


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