Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TTree Struct Reference

The individual data for a tree. More...

#include <W3DTreeBuffer.h>

Public Attributes

Vector3 location
 Drawing location.
 
Real scale
 Scale at location.
 
Real sin
 Sine of the rotation angle at location.
 
Real cos
 Cosine of the rotation angle at location.
 
Int treeType
 Type of tree.
 
Bool visible
 Visible flag, updated each frame.
 
SphereClass bounds
 Bounding sphere for culling to set the visible flag.
 
Real sortKey
 Sort key, essentially the distance along the look at vector.
 
DrawableID drawableID
 Drawable this tree corresponds to.
 
Real pushAside
 
Real pushAsideDelta
 
Real pushAsideSin
 Sine of the rotation angle at location.
 
Real pushAsideCos
 Cosine of the rotation angle at location.
 
ObjectID pushAsideSource
 Unit that is pushing us aside.
 
UnsignedInt lastFrameUpdated
 Last frame push aside was updated.
 
Int nextInPartition
 
Int swayType
 Which sway array entry we are using.
 
Int firstIndex
 First index in the vertex buffer for this tree.
 
Int bufferNdx
 Which vertex buffer this is in.
 
Real m_angularVelocity
 Velocity in degrees per frame (or is it radians per frame?)
 
Real m_angularAcceleration
 Acceleration angularVelocity is increasing.
 
Coord3D m_toppleDirection
 Z-less direction we are toppling.
 
W3DToppleState m_toppleState
 Stage this module is in.
 
Real m_angularAccumulation
 How much have I rotated so I know when to bounce.
 
UnsignedInt m_options
 topple options
 
Matrix3D m_mtx
 
UnsignedInt m_sinkFramesLeft
 Toppled trees sink into the terrain & disappear, how many frames left.
 

Detailed Description

The individual data for a tree.

Definition at line 90 of file W3DTreeBuffer.h.

Member Data Documentation

◆ bounds

SphereClass TTree::bounds

Bounding sphere for culling to set the visible flag.

Definition at line 97 of file W3DTreeBuffer.h.

◆ bufferNdx

Int TTree::bufferNdx

Which vertex buffer this is in.

Definition at line 114 of file W3DTreeBuffer.h.

◆ cos

Real TTree::cos

Cosine of the rotation angle at location.

Definition at line 94 of file W3DTreeBuffer.h.

◆ drawableID

DrawableID TTree::drawableID

Drawable this tree corresponds to.

Definition at line 99 of file W3DTreeBuffer.h.

◆ firstIndex

Int TTree::firstIndex

First index in the vertex buffer for this tree.

Definition at line 113 of file W3DTreeBuffer.h.

◆ lastFrameUpdated

UnsignedInt TTree::lastFrameUpdated

Last frame push aside was updated.

Definition at line 107 of file W3DTreeBuffer.h.

◆ location

Vector3 TTree::location

Drawing location.

Definition at line 91 of file W3DTreeBuffer.h.

◆ m_angularAcceleration

Real TTree::m_angularAcceleration

Acceleration angularVelocity is increasing.

Definition at line 118 of file W3DTreeBuffer.h.

◆ m_angularAccumulation

Real TTree::m_angularAccumulation

How much have I rotated so I know when to bounce.

Definition at line 121 of file W3DTreeBuffer.h.

◆ m_angularVelocity

Real TTree::m_angularVelocity

Velocity in degrees per frame (or is it radians per frame?)

Definition at line 117 of file W3DTreeBuffer.h.

◆ m_mtx

Matrix3D TTree::m_mtx

Definition at line 123 of file W3DTreeBuffer.h.

◆ m_options

UnsignedInt TTree::m_options

topple options

Definition at line 122 of file W3DTreeBuffer.h.

◆ m_sinkFramesLeft

UnsignedInt TTree::m_sinkFramesLeft

Toppled trees sink into the terrain & disappear, how many frames left.

Definition at line 124 of file W3DTreeBuffer.h.

◆ m_toppleDirection

Coord3D TTree::m_toppleDirection

Z-less direction we are toppling.

Definition at line 119 of file W3DTreeBuffer.h.

◆ m_toppleState

W3DToppleState TTree::m_toppleState

Stage this module is in.

Definition at line 120 of file W3DTreeBuffer.h.

◆ nextInPartition

Int TTree::nextInPartition

Definition at line 109 of file W3DTreeBuffer.h.

◆ pushAside

Real TTree::pushAside

Definition at line 101 of file W3DTreeBuffer.h.

◆ pushAsideCos

Real TTree::pushAsideCos

Cosine of the rotation angle at location.

Definition at line 104 of file W3DTreeBuffer.h.

◆ pushAsideDelta

Real TTree::pushAsideDelta

Definition at line 102 of file W3DTreeBuffer.h.

◆ pushAsideSin

Real TTree::pushAsideSin

Sine of the rotation angle at location.

Definition at line 103 of file W3DTreeBuffer.h.

◆ pushAsideSource

ObjectID TTree::pushAsideSource

Unit that is pushing us aside.

Definition at line 105 of file W3DTreeBuffer.h.

◆ scale

Real TTree::scale

Scale at location.

Definition at line 92 of file W3DTreeBuffer.h.

◆ sin

Real TTree::sin

Sine of the rotation angle at location.

Definition at line 93 of file W3DTreeBuffer.h.

◆ sortKey

Real TTree::sortKey

Sort key, essentially the distance along the look at vector.

Definition at line 98 of file W3DTreeBuffer.h.

◆ swayType

Int TTree::swayType

Which sway array entry we are using.

Definition at line 111 of file W3DTreeBuffer.h.

◆ treeType

Int TTree::treeType

Type of tree.

Definition at line 95 of file W3DTreeBuffer.h.

◆ visible

Bool TTree::visible

Visible flag, updated each frame.

Definition at line 96 of file W3DTreeBuffer.h.


The documentation for this struct was generated from the following file: