Nuclide
Software Development Kit for id Technology (BETA)
ai_schedule.h
1/*
2 * Copyright (c) 2016-2024 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
89class
91{
92public:
93 void ncSchedule(void);
94
96 nonvirtual ncSchedule CreateSchedule(ncActor targetActor, string scheduleDecl);
97 nonvirtual void SetTarget(ncEntity target);
98 nonvirtual ncEntity GetTarget(void);
99 nonvirtual void Think(void);
100
101private:
102
103 int m_taskCount;
104 int m_onTask;
105 ncActor m_controllingActor;
106 ncDict m_scheduleDecl;
107 ncEntity m_eTarget;
108
109 nonvirtual bool AssignActor(ncActor targetActor);
110 nonvirtual void Advance(void);
111 nonvirtual void AdvanceLater(float timeDelta);
112 nonvirtual void Cancel(void);
113};
114 // end of npc_schedules
116
This entity class represents an object with choreographed/free-form movement.
Definition: NSNavAI.h:72
This class is responsible for handling groups of key/value pairs.
Definition: NSDict.h:42
ncEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:54
This class is responsible for handling core entity functionality.
Definition: NSIO.h:78
Definition: ai_schedule.h:91