![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
ncSquadMonster based NPCs are able to communicate strategies together.
Public Member Functions | |
| void | ncSquadMonster (void) |
| virtual void | Spawned (void) |
| Called when the entity is fulled initialized. | |
| virtual void | SpawnKey (string, string) |
| This method handles entity key/value pairs on map load. | |
| virtual void | Input (entity, string, string) |
| Called when we are being prompted by another object/function with an input message. | |
| virtual void | Save (float) |
| Handles saving a copy of this entity to a given filehandle. | |
| virtual void | Restore (string, string) |
| Similar to ncIO::SpawnKey() but for save-game fields. | |
| virtual void | HasBecomeSquadLeader (void) |
| Overridable: Called when this NPC became squad leader. | |
| virtual void | HasJoinedSquad (void) |
| Overridable: Called when this NPC joined a squad. | |
| nonvirtual bool | InSquad (void) |
| Returns true/false if they're in a squad. | |
| nonvirtual bool | IsSquadLeader (void) |
| Returns whether or not they're the squad leader. | |
| nonvirtual ncSquadMonster | GetSquadLeader (void) |
| Returns the leader of their squad. | |
| nonvirtual void | FindSquadNearMe (float) |
| Will find and attach to a Squad in the specified radius. | |
| nonvirtual void | AddToSquad (ncSquadMonster) |
| Will add the specified NPC to this entity's current squad. | |
| nonvirtual void | RemoveFromSquad (ncSquadMonster) |
| Will remove the specified NPC from this entity's current squad. | |
| nonvirtual ncSquadMonster | GetNearestSquadMember (void) |
| Returns the nearest available member of its squad. | |
| nonvirtual ncSquadMonster | GetFarthestSquadMember (void) |
| Returns the farthest available member of its squad. | |
| nonvirtual void | AlertSquadWithMindset (string scheduleType) |
| Informs out squad of our new mindset. | |
| void ncSquadMonster::ncSquadMonster | ( | void | ) |
| void ncSquadMonster::AddToSquad | ( | ncSquadMonster | addMember | ) |
Will add the specified NPC to this entity's current squad.
| void ncSquadMonster::AlertSquadWithMindset | ( | string | scheduleType | ) |
Informs out squad of our new mindset.
| void ncSquadMonster::FindSquadNearMe | ( | float | searchRadius | ) |
Will find and attach to a Squad in the specified radius.
| ncSquadMonster ncSquadMonster::GetFarthestSquadMember | ( | void | ) |
Returns the farthest available member of its squad.
| ncSquadMonster ncSquadMonster::GetNearestSquadMember | ( | void | ) |
Returns the nearest available member of its squad.
| ncSquadMonster ncSquadMonster::GetSquadLeader | ( | void | ) |
Returns the leader of their squad.
Invalid if none.
|
virtual |
Overridable: Called when this NPC became squad leader.
|
virtual |
Overridable: Called when this NPC joined a squad.
|
virtual |
Called when we are being prompted by another object/function with an input message.
Reimplemented from ncMonster.
Reimplemented in ambient_generic, and ncTalkMonster.
| bool ncSquadMonster::InSquad | ( | void | ) |
Returns true/false if they're in a squad.
| bool ncSquadMonster::IsSquadLeader | ( | void | ) |
Returns whether or not they're the squad leader.
| void ncSquadMonster::RemoveFromSquad | ( | ncSquadMonster | toRemove | ) |
Will remove the specified NPC from this entity's current squad.
Can be called on self.
|
virtual |
Similar to ncIO::SpawnKey() but for save-game fields.
Whatever you write into file handles within your ncIO::Save() method needs to be read back in here.
Reimplemented from ncMonster.
Reimplemented in ambient_generic, ncTalkMonster, and speaker.
|
virtual |
Handles saving a copy of this entity to a given filehandle.
Within you want to use the ncIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from ncMonster.
Reimplemented in ambient_generic, ncTalkMonster, and speaker.
|
virtual |
Called when the entity is fulled initialized.
Any spawn key/value info pairs have already been dealt with. So now we can make full decisions on the entity. Always make sure to call super::Spawned(); inside your method when overriding.
Reimplemented from ncMonster.
Reimplemented in ambient_generic, and speaker.
|
virtual |
This method handles entity key/value pairs on map load.
You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of ncIO.
Reimplemented from ncMonster.
Reimplemented in ambient_generic, ncTalkMonster, and speaker.