VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
12.3 - Adding a New Task for an Entity

There are two ways to add a new task for an entity,

If you are using VR-Forces as a back-end only, if you have created your own front-end through which you can configure your own user-defined tasks, or if you are willing to extend the VR-Forces GUI using the GUI API, we recommend that you derive a new task from DtSimTask.

If you want to use a new task without extending the VR-Forces front-end, use DtUserTask as a wrapper around the new task. It has a simple interface that takes a string task name, which identifies the new kind of task being defined, and up to four string arguments. You must also create one or more controllers to handle a DtUserTask containing the new task. Users will be able to specify the new task in the User Task dialog box to task an entity or add it to a plan.

The advantage of deriving a new task from DtSimTask is that you can customize the interface to the task class, making the application code cleaner.

[<< Task Messages] [Home] [Top of Page] [Deriving a New Task from DtSimTask >>]


Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)