C# 클래스 NPC, UnderworldExporter

상속: MonoBehaviour
파일 보기 프로젝트 열기: hankmorgan/UnderworldExporter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Ammo int
AnimRange int
CalcFacingForDebug int
CurrentAnim string
Frozen bool
FrozenUpdate short
MagicAttack bool
NPCStatusEffects SpellEffect[]
NPC_DEAD bool
NPC_ID string
NPC_Launcher GameObject
NavMeshRegion string
Poisoned bool
SpellIndex int
adj float
anim Animator
currentState int
gtarg GameObject
gtargName string
isUndead bool
npc_arms int
npc_attitude int
npc_goal int
npc_gtarg int
npc_health int
npc_hp int
npc_hunger int
npc_level int
npc_name int
npc_power int
npc_talkedto int
npc_whoami int
npc_xhome int
npc_yhome int
state int
testforce float

공개 메소드들

메소드 설명
AI_INIT ( ) : void
ApplyAttack ( int damage ) : bool

Applies the attack to the NPC

ApplyAttack ( int damage, GameObject source ) : bool

Applies the attack from a known source

Awake ( ) : void
ContextMenuDesc ( int item_id ) : string
ContextMenuUsedDesc ( ) : string
ExecuteAttack ( ) : void

NPC tries to hit the player.

ExecuteMagicAttack ( ) : void

NPC casts a spell.

ExecuteRangedAttack ( ) : void

Executes the ranged attack.

GetImpactPoint ( ) : Vector3
LookAt ( ) : bool

Looks at the NPC

OnDeath ( ) : void

Raises the death events for the player.

TalkTo ( ) : bool

Begins a conversation if possible

UpdateSprite ( ) : void

Updates the appearance of the NPC

UseVerb ( ) : string
playAnimation ( string pAnim, int newState ) : void

Checks if a new animation is needed and if so run it.

비공개 메소드들

메소드 설명
NPCMoodDesc ( ) : string

Gives a mood string for NPCs

facing ( float angle ) : int

Breaks down the angle in the the facing sector. Clockwise from 0)

메소드 상세

AI_INIT() 공개 메소드

public AI_INIT ( ) : void
리턴 void

ApplyAttack() 공개 메소드

Applies the attack to the NPC
public ApplyAttack ( int damage ) : bool
damage int Damage.
리턴 bool

ApplyAttack() 공개 메소드

Applies the attack from a known source
public ApplyAttack ( int damage, GameObject source ) : bool
damage int Damage.
source GameObject Source.
리턴 bool

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

ContextMenuDesc() 공개 메소드

public ContextMenuDesc ( int item_id ) : string
item_id int
리턴 string

ContextMenuUsedDesc() 공개 메소드

public ContextMenuUsedDesc ( ) : string
리턴 string

ExecuteAttack() 공개 메소드

NPC tries to hit the player.
public ExecuteAttack ( ) : void
리턴 void

ExecuteMagicAttack() 공개 메소드

NPC casts a spell.
public ExecuteMagicAttack ( ) : void
리턴 void

ExecuteRangedAttack() 공개 메소드

Executes the ranged attack.
public ExecuteRangedAttack ( ) : void
리턴 void

GetImpactPoint() 공개 메소드

public GetImpactPoint ( ) : Vector3
리턴 Vector3

LookAt() 공개 메소드

Looks at the NPC
public LookAt ( ) : bool
리턴 bool

OnDeath() 공개 메소드

Raises the death events for the player.
public OnDeath ( ) : void
리턴 void

TalkTo() 공개 메소드

Begins a conversation if possible
public TalkTo ( ) : bool
리턴 bool

UpdateSprite() 공개 메소드

Updates the appearance of the NPC
public UpdateSprite ( ) : void
리턴 void

UseVerb() 공개 메소드

public UseVerb ( ) : string
리턴 string

playAnimation() 공개 메소드

Checks if a new animation is needed and if so run it.
public playAnimation ( string pAnim, int newState ) : void
pAnim string P animation.
newState int New state.
리턴 void

프로퍼티 상세

Ammo 공개적으로 프로퍼티

public int Ammo
리턴 int

AnimRange 공개적으로 프로퍼티

public int AnimRange
리턴 int

CalcFacingForDebug 공개적으로 프로퍼티

public int CalcFacingForDebug
리턴 int

CurrentAnim 공개적으로 프로퍼티

public string CurrentAnim
리턴 string

Frozen 공개적으로 프로퍼티

public bool Frozen
리턴 bool

FrozenUpdate 공개적으로 프로퍼티

public short FrozenUpdate
리턴 short

MagicAttack 공개적으로 프로퍼티

public bool MagicAttack
리턴 bool

NPCStatusEffects 공개적으로 프로퍼티

public SpellEffect[] NPCStatusEffects
리턴 SpellEffect[]

NPC_DEAD 공개적으로 프로퍼티

public bool NPC_DEAD
리턴 bool

NPC_ID 공개적으로 프로퍼티

public string NPC_ID
리턴 string

NPC_Launcher 공개적으로 프로퍼티

public GameObject NPC_Launcher
리턴 GameObject

NavMeshRegion 공개적으로 프로퍼티

public string NavMeshRegion
리턴 string

Poisoned 공개적으로 프로퍼티

public bool Poisoned
리턴 bool

SpellIndex 공개적으로 프로퍼티

public int SpellIndex
리턴 int

adj 공개적으로 프로퍼티

public float adj
리턴 float

anim 공개적으로 프로퍼티

public Animator anim
리턴 Animator

currentState 공개적으로 프로퍼티

public int currentState
리턴 int

gtarg 공개적으로 프로퍼티

public GameObject gtarg
리턴 GameObject

gtargName 공개적으로 프로퍼티

public string gtargName
리턴 string

isUndead 공개적으로 프로퍼티

public bool isUndead
리턴 bool

npc_arms 공개적으로 프로퍼티

public int npc_arms
리턴 int

npc_attitude 공개적으로 프로퍼티

public int npc_attitude
리턴 int

npc_goal 공개적으로 프로퍼티

public int npc_goal
리턴 int

npc_gtarg 공개적으로 프로퍼티

public int npc_gtarg
리턴 int

npc_health 공개적으로 프로퍼티

public int npc_health
리턴 int

npc_hp 공개적으로 프로퍼티

public int npc_hp
리턴 int

npc_hunger 공개적으로 프로퍼티

public int npc_hunger
리턴 int

npc_level 공개적으로 프로퍼티

public int npc_level
리턴 int

npc_name 공개적으로 프로퍼티

public int npc_name
리턴 int

npc_power 공개적으로 프로퍼티

public int npc_power
리턴 int

npc_talkedto 공개적으로 프로퍼티

public int npc_talkedto
리턴 int

npc_whoami 공개적으로 프로퍼티

public int npc_whoami
리턴 int

npc_xhome 공개적으로 프로퍼티

public int npc_xhome
리턴 int

npc_yhome 공개적으로 프로퍼티

public int npc_yhome
리턴 int

state 공개적으로 프로퍼티

public int state
리턴 int

testforce 공개적으로 프로퍼티

public float testforce
리턴 float