interreality.org [VOS]
[Home] [About]
[Screenshots]
[Download]
[News]
[Community]
[Documentation] [Manual]
[Bugs & Requests] [Wiki]

Animal Class Reference

#include <vostut8creature.hh>

Inheritance diagram for Animal:

Creature VOS::MetaObject VOS::Vobject VOS::Dispatchable VUtil::RefCounted List of all members.

Detailed Description

Definition at line 153 of file vostut8creature.hh.

Public Member Functions

Static Public Member Functions

Protected Member Functions


Constructor & Destructor Documentation

Animal::Animal ( VOS::VobjectBase superobject  )  [protected]

Definition at line 120 of file vostut8creature.cc.

Referenced by new_Animal().


Member Function Documentation

void Animal::addPrey ( Creature p  ) 

Add prey (something that this animal eats).

Definition at line 154 of file vostut8creature.cc.

double Animal::getTailLength (  ) 

Get tail length.

Definition at line 143 of file vostut8creature.cc.

const std::string Animal::getVOSType (  )  [virtual]

Returns:
the specific VOS type name that represents the VOS interface this object is supplying. This should always be overridden by the subclass.

Reimplemented from Creature.

Definition at line 128 of file vostut8creature.cc.

MetaObject * Animal::new_Animal ( VOS::VobjectBase superobject,
const std::string &  type 
) [static]

Definition at line 133 of file vostut8creature.cc.

void Animal::setTailLength ( double  l  ) 

Set length of animal's tail (cm).

(Default is 0)

Definition at line 139 of file vostut8creature.cc.


The documentation for this class was generated from the following files: