DC/RTS Documentation  v1.62
A Unity3D System Incorporating the Functionality of a Dungeon Crawler or Real Time Strategy System
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
NPCHandler Class Reference

Creates a Unity3D Object to Inherit the Functionality of a DC/RTS NPCHandler within the Unity3D Environment. More...

Inheritance diagram for NPCHandler:

Public Member Functions

bool isValidMovePathTileCount ()
 Is the Current Move To Path Tile not the Last Tile? More...
 
GridGenerator.GridSquare getMovePathTile ()
 Gets the Path Tile the NPC Object is Moving Towards. More...
 
void setActiveTarget (bool val)
 Sets whether the NPC Object is an ActiveTarget. More...
 
bool isActiveTarget ()
 Is the NPC Object an Active Target? More...
 
override string ToString ()
 Returns the Name of this NPC Object. More...
 

Public Attributes

string NPC_Name = "NEWNPC"
 The Name of this NPC Object. More...
 
Color ActiveColor = Color.yellow
 The Color of this NPC's SelectedIndicator. More...
 

Properties

bool Moveable [get, set]
 Does the NPC Object have a Path to Traverse? More...
 

Detailed Description

Creates a Unity3D Object to Inherit the Functionality of a DC/RTS NPCHandler within the Unity3D Environment.

Member Function Documentation

GridGenerator.GridSquare NPCHandler.getMovePathTile ( )

Gets the Path Tile the NPC Object is Moving Towards.

Returns
The GridGenerator.GridSquare that the NPC Object is Moving Towards.
bool NPCHandler.isActiveTarget ( )

Is the NPC Object an Active Target?

bool NPCHandler.isValidMovePathTileCount ( )

Is the Current Move To Path Tile not the Last Tile?

void NPCHandler.setActiveTarget ( bool  val)

Sets whether the NPC Object is an ActiveTarget.

This is Called for when the NPC Object is Selected.

Parameters
valTrue or False.
override string NPCHandler.ToString ( )

Returns the Name of this NPC Object.

Member Data Documentation

Color NPCHandler.ActiveColor = Color.yellow

The Color of this NPC's SelectedIndicator.

string NPCHandler.NPC_Name = "NEWNPC"

The Name of this NPC Object.

Property Documentation

bool NPCHandler.Moveable
getset

Does the NPC Object have a Path to Traverse?


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