doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
idDeclAF Class Reference

#include <DeclAF.h>

Inheritance diagram for idDeclAF:
idDecl

Public Member Functions

 idDeclAF (void)
 
virtual ~idDeclAF (void)
 
virtual size_t Size (void) const
 
virtual const char * DefaultDefinition (void) const
 
virtual bool Parse (const char *text, const int textLength)
 
virtual void FreeData (void)
 
virtual void Finish (const getJointTransform_t GetJointTransform, const idJointMat *frame, void *model) const
 
bool Save (void)
 
void NewBody (const char *name)
 
void RenameBody (const char *oldName, const char *newName)
 
void DeleteBody (const char *name)
 
void NewConstraint (const char *name)
 
void RenameConstraint (const char *oldName, const char *newName)
 
void DeleteConstraint (const char *name)
 
- Public Member Functions inherited from idDecl
 idDecl (void)
 
virtual ~idDecl (void)
 
const char * GetName (void) const
 
declType_t GetType (void) const
 
declState_t GetState (void) const
 
bool IsImplicit (void) const
 
bool IsValid (void) const
 
void Invalidate (void)
 
void EnsureNotPurged (void)
 
int Index (void) const
 
int GetLineNum (void) const
 
const char * GetFileName (void) const
 
void GetText (char *text) const
 
int GetTextLength (void) const
 
void SetText (const char *text)
 
bool ReplaceSourceFileText (void)
 
bool SourceFileChanged (void) const
 
void MakeDefault (void)
 
bool EverReferenced (void) const
 
virtual bool SetDefaultText (void)
 
virtual void List (void) const
 
virtual void Print (void) const
 

Static Public Member Functions

static int ContentsFromString (const char *str)
 
static const char * ContentsToString (const int contents, idStr &str)
 
static declAFJointMod_t JointModFromString (const char *str)
 
static const char * JointModToString (declAFJointMod_t jointMod)
 

Public Attributes

bool modified
 
idStr model
 
idStr skin
 
float defaultLinearFriction
 
float defaultAngularFriction
 
float defaultContactFriction
 
float defaultConstraintFriction
 
float totalMass
 
idVec2 suspendVelocity
 
idVec2 suspendAcceleration
 
float noMoveTime
 
float noMoveTranslation
 
float noMoveRotation
 
float minMoveTime
 
float maxMoveTime
 
int contents
 
int clipMask
 
bool selfCollision
 
idList< idDeclAF_Body * > bodies
 
idList< idDeclAF_Constraint * > constraints
 
- Public Attributes inherited from idDecl
idDeclBasebase
 

Private Member Functions

bool ParseContents (idLexer &src, int &c) const
 
bool ParseBody (idLexer &src)
 
bool ParseFixed (idLexer &src)
 
bool ParseBallAndSocketJoint (idLexer &src)
 
bool ParseUniversalJoint (idLexer &src)
 
bool ParseHinge (idLexer &src)
 
bool ParseSlider (idLexer &src)
 
bool ParseSpring (idLexer &src)
 
bool ParseSettings (idLexer &src)
 
bool WriteBody (idFile *f, const idDeclAF_Body &body) const
 
bool WriteFixed (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteBallAndSocketJoint (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteUniversalJoint (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteHinge (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteSlider (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteSpring (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteConstraint (idFile *f, const idDeclAF_Constraint &c) const
 
bool WriteSettings (idFile *f) const
 
bool RebuildTextSource (void)
 

Friends

class idAFFileManager
 

Detailed Description

Definition at line 141 of file DeclAF.h.

Constructor & Destructor Documentation

idDeclAF::idDeclAF ( void  )

Definition at line 1733 of file DeclAF.cpp.

idDeclAF::~idDeclAF ( void  )
virtual

Definition at line 1742 of file DeclAF.cpp.

Member Function Documentation

int idDeclAF::ContentsFromString ( const char *  str)
static

Definition at line 653 of file DeclAF.cpp.

const char * idDeclAF::ContentsToString ( const int  contents,
idStr str 
)
static

Definition at line 693 of file DeclAF.cpp.

const char * idDeclAF::DefaultDefinition ( void  ) const
virtual

Reimplemented from idDecl.

Definition at line 1526 of file DeclAF.cpp.

void idDeclAF::DeleteBody ( const char *  name)

Definition at line 1661 of file DeclAF.cpp.

void idDeclAF::DeleteConstraint ( const char *  name)

Definition at line 1716 of file DeclAF.cpp.

void idDeclAF::Finish ( const getJointTransform_t  GetJointTransform,
const idJointMat frame,
void model 
) const
virtual

Definition at line 1590 of file DeclAF.cpp.

void idDeclAF::FreeData ( void  )
virtual

Reimplemented from idDecl.

Definition at line 1564 of file DeclAF.cpp.

declAFJointMod_t idDeclAF::JointModFromString ( const char *  str)
static

Definition at line 726 of file DeclAF.cpp.

const char * idDeclAF::JointModToString ( declAFJointMod_t  jointMod)
static

Definition at line 744 of file DeclAF.cpp.

void idDeclAF::NewBody ( const char *  name)

Definition at line 1618 of file DeclAF.cpp.

void idDeclAF::NewConstraint ( const char *  name)

Definition at line 1686 of file DeclAF.cpp.

bool idDeclAF::Parse ( const char *  text,
const int  textLength 
)
virtual

Reimplemented from idDecl.

Definition at line 1430 of file DeclAF.cpp.

bool idDeclAF::ParseBallAndSocketJoint ( idLexer src)
private

Definition at line 1009 of file DeclAF.cpp.

bool idDeclAF::ParseBody ( idLexer src)
private

Definition at line 793 of file DeclAF.cpp.

bool idDeclAF::ParseContents ( idLexer src,
int c 
) const
private

Definition at line 773 of file DeclAF.cpp.

bool idDeclAF::ParseFixed ( idLexer src)
private

Definition at line 970 of file DeclAF.cpp.

bool idDeclAF::ParseHinge ( idLexer src)
private

Definition at line 1166 of file DeclAF.cpp.

bool idDeclAF::ParseSettings ( idLexer src)
private

Definition at line 1340 of file DeclAF.cpp.

bool idDeclAF::ParseSlider ( idLexer src)
private

Definition at line 1230 of file DeclAF.cpp.

bool idDeclAF::ParseSpring ( idLexer src)
private

Definition at line 1277 of file DeclAF.cpp.

bool idDeclAF::ParseUniversalJoint ( idLexer src)
private

Definition at line 1088 of file DeclAF.cpp.

bool idDeclAF::RebuildTextSource ( void  )
private

Definition at line 602 of file DeclAF.cpp.

void idDeclAF::RenameBody ( const char *  oldName,
const char *  newName 
)

Definition at line 1635 of file DeclAF.cpp.

void idDeclAF::RenameConstraint ( const char *  oldName,
const char *  newName 
)

Definition at line 1700 of file DeclAF.cpp.

bool idDeclAF::Save ( void  )

Definition at line 641 of file DeclAF.cpp.

size_t idDeclAF::Size ( void  ) const
virtual

Reimplemented from idDecl.

Definition at line 764 of file DeclAF.cpp.

bool idDeclAF::WriteBallAndSocketJoint ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 419 of file DeclAF.cpp.

bool idDeclAF::WriteBody ( idFile f,
const idDeclAF_Body body 
) const
private

Definition at line 307 of file DeclAF.cpp.

bool idDeclAF::WriteConstraint ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 550 of file DeclAF.cpp.

bool idDeclAF::WriteFixed ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 406 of file DeclAF.cpp.

bool idDeclAF::WriteHinge ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 482 of file DeclAF.cpp.

bool idDeclAF::WriteSettings ( idFile f) const
private

Definition at line 575 of file DeclAF.cpp.

bool idDeclAF::WriteSlider ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 507 of file DeclAF.cpp.

bool idDeclAF::WriteSpring ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 524 of file DeclAF.cpp.

bool idDeclAF::WriteUniversalJoint ( idFile f,
const idDeclAF_Constraint c 
) const
private

Definition at line 450 of file DeclAF.cpp.

Friends And Related Function Documentation

friend class idAFFileManager
friend

Definition at line 142 of file DeclAF.h.

Member Data Documentation

idList<idDeclAF_Body *> idDeclAF::bodies

Definition at line 189 of file DeclAF.h.

int idDeclAF::clipMask

Definition at line 187 of file DeclAF.h.

idList<idDeclAF_Constraint *> idDeclAF::constraints

Definition at line 190 of file DeclAF.h.

int idDeclAF::contents

Definition at line 186 of file DeclAF.h.

float idDeclAF::defaultAngularFriction

Definition at line 175 of file DeclAF.h.

float idDeclAF::defaultConstraintFriction

Definition at line 177 of file DeclAF.h.

float idDeclAF::defaultContactFriction

Definition at line 176 of file DeclAF.h.

float idDeclAF::defaultLinearFriction

Definition at line 174 of file DeclAF.h.

float idDeclAF::maxMoveTime

Definition at line 185 of file DeclAF.h.

float idDeclAF::minMoveTime

Definition at line 184 of file DeclAF.h.

idStr idDeclAF::model

Definition at line 172 of file DeclAF.h.

bool idDeclAF::modified

Definition at line 171 of file DeclAF.h.

float idDeclAF::noMoveRotation

Definition at line 183 of file DeclAF.h.

float idDeclAF::noMoveTime

Definition at line 181 of file DeclAF.h.

float idDeclAF::noMoveTranslation

Definition at line 182 of file DeclAF.h.

bool idDeclAF::selfCollision

Definition at line 188 of file DeclAF.h.

idStr idDeclAF::skin

Definition at line 173 of file DeclAF.h.

idVec2 idDeclAF::suspendAcceleration

Definition at line 180 of file DeclAF.h.

idVec2 idDeclAF::suspendVelocity

Definition at line 179 of file DeclAF.h.

float idDeclAF::totalMass

Definition at line 178 of file DeclAF.h.


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