C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class ZoneObject

Defined in:  C4Zones.h
The ZoneObject class encapsulates data for a zone.
Definition

class ZoneObject : public Object

Member Functions
ZoneObject::GetZoneType Returns the type of a zone.
ZoneObject::GetAmbientLight Returns the color of the ambient light for a zone.
ZoneObject::SetAmbientLight Sets the color of the ambient light for a zone.
Constructor

ZoneObject(ZoneType type);

The constructor has protected access. The ZoneObject class can only exist as the base class for a more specific type of zone.
Parameters
type The zone type.
Description


kZoneInfinite Infinite zone that covers all space.
kZoneBox Box-shaped zone.
kZoneCylinder Cylinder-shaped zone.
kZoneDome Dome-shaped zone.
kZonePolygon Zone whose base is a convex polygon.
Base Classes
Object A ZoneObject is an object that can be shared by multiple zone nodes.
See Also

Zone

PortalObject