Wartbed:Manual/Models and Actors

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search

Mikademus (Talk | contribs)
(Created page with 'Stub. <div style="margin:2em;"><source lang="cpp"> #include "WARTBED/wb_MVC-Core.h" #include "WARTBED/wb_Actor.h" </source></div> ==Models, Views and Controllers== A <tt>Model<...')
Newer edit →

Revision as of 17:17, 20 January 2010

Stub.

#include "WARTBED/wb_MVC-Core.h"
#include "WARTBED/wb_Actor.h"

Models, Views and Controllers

A Model is a class that is part of the universe simulation. If it is made apparent to the player it is through a View object. If it can be interacted with by the player it is through a Controller object.

Movels, Actors and Props

An Actor is anything in a game that has 'volition' and 'intentionality', that is, that can move independently and can focus on targets. More technically, in the WARBED framework an Actor is a class that fulfills both the wb::mvc::Model and wb::Orderable interfaces. Both Individuals and Groups (f.i. soldiers and regiments) are Actors even though Groups consist of individuals, and orders given to them will be delegated to these.

A Prop is any Model that has 'no volition' and 'no intentionality'. F.i. a tree or house, but also the ground, is a Prop.

Personal tools
communication