Wartbed:Manual/Models and Actors

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
(+stub)
Line 1: Line 1:
-
Stub.
+
{{stub}}
<div style="margin:2em;"><source lang="cpp">
<div style="margin:2em;"><source lang="cpp">
Line 9: Line 9:
A <tt>Model</tt> is a class that is part of the universe simulation. If it is made apparent to the player it is through a <tt>View</tt> object. If it can be interacted with by the player it is through a <tt>Controller</tt> object.  
A <tt>Model</tt> is a class that is part of the universe simulation. If it is made apparent to the player it is through a <tt>View</tt> object. If it can be interacted with by the player it is through a <tt>Controller</tt> object.  
-
==Movels, Actors and Props==
+
==Models, Actors and Props==
An <tt>Actor</tt> 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 <tt>wb::mvc::Model</tt> and <tt>wb::Orderable</tt> 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.  
An <tt>Actor</tt> 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 <tt>wb::mvc::Model</tt> and <tt>wb::Orderable</tt> 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.  

Revision as of 20:17, 20 January 2010


#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.

Models, 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