Loading...
Searching...
No Matches
PixelCrushers.LoveHate.Example.NPC Class Reference

Basic NPC script for the example scene. More...

Inheritance diagram for PixelCrushers.LoveHate.Example.NPC:
Collaboration diagram for PixelCrushers.LoveHate.Example.NPC:

Public Member Functions

void Idle ()
 
void Wander ()
 
void OnWitnessDeed (Rumor rumor)
 Raises the witness deed event.
 
string GetSummaryText ()
 

Public Attributes

float powerLevel = 1
 
float selfPerceivedPowerLevel = 1
 
- Public Attributes inherited from PixelCrushers.LoveHate.Example.Mover2D
bool controlMovement = true
 
Vector3 moveToPosition
 

Protected Member Functions

override void Start ()
 
- Protected Member Functions inherited from PixelCrushers.LoveHate.Example.Mover2D
virtual void FixedUpdate ()
 

Properties

FactionMember factionMember [get]
 

Additional Inherited Members

- Protected Attributes inherited from PixelCrushers.LoveHate.Example.Mover2D
Rect cameraRect
 
Rigidbody2D rb
 

Detailed Description

Basic NPC script for the example scene.

Note that it uses the event system to handle IWitnessDeedEventHandler's OnWitnessDeed() method.

Member Function Documentation

◆ GetSummaryText()

string PixelCrushers.LoveHate.Example.NPC.GetSummaryText ( )
inline

◆ Idle()

void PixelCrushers.LoveHate.Example.NPC.Idle ( )
inline

◆ OnWitnessDeed()

void PixelCrushers.LoveHate.Example.NPC.OnWitnessDeed ( Rumor  rumor)
inline

Raises the witness deed event.

Parameters
rumorThe faction member's subjective evaluation of the deed, which may or may not be added to the faction member's memory based on its perceived importance to the faction member.

Implements PixelCrushers.LoveHate.IWitnessDeedEventHandler.

◆ Start()

override void PixelCrushers.LoveHate.Example.NPC.Start ( )
inlineprotectedvirtual

◆ Wander()

void PixelCrushers.LoveHate.Example.NPC.Wander ( )
inline

Member Data Documentation

◆ powerLevel

float PixelCrushers.LoveHate.Example.NPC.powerLevel = 1

◆ selfPerceivedPowerLevel

float PixelCrushers.LoveHate.Example.NPC.selfPerceivedPowerLevel = 1

Property Documentation

◆ factionMember

FactionMember PixelCrushers.LoveHate.Example.NPC.factionMember
get

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