2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2009-02-10 10:01:48 -08:00
|
|
|
Copyright (C) 2005-2009 Warzone Resurrection Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Warzone 2100 is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Anim.c
|
|
|
|
*
|
|
|
|
* Anim functions
|
|
|
|
*
|
|
|
|
* Gareth Jones 11/7/97
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2006-06-02 12:34:58 -07:00
|
|
|
#include "lib/framework/frame.h"
|
2009-02-10 09:23:09 -08:00
|
|
|
#include "lib/framework/string_ext.h"
|
2006-09-23 11:38:12 -07:00
|
|
|
#include "lib/framework/frameresource.h"
|
2007-02-14 12:13:31 -08:00
|
|
|
#include "lib/ivis_opengl/piematrix.h"
|
2009-02-10 09:23:18 -08:00
|
|
|
#include "lib/framework/fixedpoint.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
#include "anim.h"
|
|
|
|
#include "parser.h"
|
2006-09-23 10:24:55 -07:00
|
|
|
#include "lib/framework/listmacs.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2007-11-21 15:06:31 -08:00
|
|
|
#define INT_SCALE 1000
|
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
/***************************************************************************/
|
|
|
|
/* structs */
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/* global variables */
|
|
|
|
|
2008-06-20 07:04:10 -07:00
|
|
|
static struct
|
2008-01-08 13:58:05 -08:00
|
|
|
{
|
|
|
|
BASEANIM *psAnimList;
|
2008-01-10 14:18:20 -08:00
|
|
|
UWORD uwCurObj;
|
|
|
|
UWORD uwCurState;
|
2008-01-08 13:58:05 -08:00
|
|
|
}
|
2008-06-20 07:04:10 -07:00
|
|
|
g_animGlobals;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Anim functions
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
/**
|
|
|
|
* Initialise animation subsystem.
|
|
|
|
*/
|
2008-01-08 13:58:05 -08:00
|
|
|
BOOL anim_Init()
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
/* init globals */
|
|
|
|
g_animGlobals.psAnimList = NULL;
|
|
|
|
g_animGlobals.uwCurObj = 0;
|
|
|
|
g_animGlobals.uwCurState = 0;
|
|
|
|
|
2008-03-24 09:51:17 -07:00
|
|
|
return true;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
/**
|
|
|
|
* Stop and release given animation.
|
|
|
|
*/
|
|
|
|
void anim_ReleaseAnim(BASEANIM *psAnim)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
// remove the anim from the list
|
2009-06-07 19:51:16 -07:00
|
|
|
if (g_animGlobals.psAnimList)
|
|
|
|
{
|
|
|
|
LIST_REMOVE(g_animGlobals.psAnimList, psAnim, BASEANIM);
|
|
|
|
}
|
2007-06-28 10:47:08 -07:00
|
|
|
/* free anim scripts */
|
2007-04-15 03:43:05 -07:00
|
|
|
free( psAnim->psStates );
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* free anim shape */
|
2008-01-10 14:18:20 -08:00
|
|
|
if (psAnim->animType == ANIM_3D_FRAMES || psAnim->animType == ANIM_3D_TRANS)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2008-01-10 14:18:20 -08:00
|
|
|
ANIM3D *psAnim3D = (ANIM3D *)psAnim;
|
|
|
|
|
2007-04-15 03:43:05 -07:00
|
|
|
free( psAnim3D->apFrame );
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
2007-04-15 03:43:05 -07:00
|
|
|
free(psAnim);
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
/**
|
|
|
|
* Shut down animation subsystem.
|
|
|
|
*/
|
|
|
|
BOOL anim_Shutdown()
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
BASEANIM *psAnim, *psAnimTmp;
|
|
|
|
|
|
|
|
if (g_animGlobals.psAnimList != NULL)
|
|
|
|
{
|
2008-01-10 14:18:20 -08:00
|
|
|
debug(LOG_ERROR, "anim_Shutdown: warning: anims still allocated");
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* empty anim list */
|
|
|
|
psAnim = g_animGlobals.psAnimList;
|
|
|
|
while ( psAnim != NULL )
|
|
|
|
{
|
|
|
|
psAnimTmp = psAnim->psNext;
|
|
|
|
anim_ReleaseAnim( psAnim );
|
|
|
|
psAnim = psAnimTmp;
|
|
|
|
}
|
|
|
|
|
2008-03-24 09:51:17 -07:00
|
|
|
return true;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
static void anim_InitBaseMembers(BASEANIM * psAnim, UWORD uwStates, UWORD uwFrameRate,
|
|
|
|
UWORD uwObj, ANIM_MODE ubType, UWORD uwID)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
psAnim->uwStates = uwStates;
|
|
|
|
psAnim->uwFrameRate = uwFrameRate;
|
|
|
|
psAnim->uwObj = uwObj;
|
|
|
|
psAnim->ubType = ubType;
|
|
|
|
psAnim->uwID = uwID;
|
|
|
|
psAnim->uwAnimTime = (UWORD) (uwStates*1000 / psAnim->uwFrameRate);
|
|
|
|
|
|
|
|
/* allocate frames */
|
2007-04-15 03:43:05 -07:00
|
|
|
psAnim->psStates = (ANIM_STATE*)malloc( uwObj*psAnim->uwStates*sizeof(ANIM_STATE) );
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
/**
|
|
|
|
* Create animation for a model. Called from animation script.
|
|
|
|
*/
|
|
|
|
BOOL anim_Create3D(char szPieFileName[], UWORD uwStates, UWORD uwFrameRate, UWORD uwObj,
|
|
|
|
ANIM_MODE ubType, UWORD uwID)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
ANIM3D *psAnim3D;
|
|
|
|
iIMDShape *psFrames;
|
|
|
|
UWORD uwFrames, i;
|
|
|
|
|
|
|
|
/* allocate anim */
|
2007-04-15 03:43:05 -07:00
|
|
|
if ( (psAnim3D = (ANIM3D*)malloc(sizeof(ANIM3D))) == NULL )
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2008-03-24 09:51:17 -07:00
|
|
|
return false;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* get local pointer to shape */
|
2008-01-08 13:58:05 -08:00
|
|
|
psAnim3D->psFrames = (iIMDShape*)resGetData("IMD", szPieFileName);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* count frames in imd */
|
|
|
|
psFrames = psAnim3D->psFrames;
|
|
|
|
uwFrames = 0;
|
|
|
|
while ( psFrames != NULL )
|
|
|
|
{
|
|
|
|
uwFrames++;
|
|
|
|
psFrames = psFrames->next;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* check frame count matches script */
|
|
|
|
if ( ubType == ANIM_3D_TRANS && uwObj != uwFrames )
|
|
|
|
{
|
2009-06-07 19:51:16 -07:00
|
|
|
ASSERT(false, "Frames in pie %s != script objects %i", szPieFileName, uwObj);
|
2008-03-24 09:51:17 -07:00
|
|
|
return false;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* get pointers to individual frames */
|
2007-04-15 03:43:05 -07:00
|
|
|
psAnim3D->apFrame = (iIMDShape**)malloc( uwFrames*sizeof(iIMDShape *) );
|
2007-06-28 10:47:08 -07:00
|
|
|
psFrames = psAnim3D->psFrames;
|
|
|
|
for ( i=0; i<uwFrames; i++ )
|
|
|
|
{
|
|
|
|
psAnim3D->apFrame[i] = psFrames;
|
|
|
|
psFrames = psFrames->next;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* init members */
|
|
|
|
psAnim3D->animType = ubType;
|
|
|
|
anim_InitBaseMembers( (BASEANIM * ) psAnim3D, uwStates,
|
|
|
|
uwFrameRate, uwObj, ubType, uwID );
|
|
|
|
|
|
|
|
/* add to head of list */
|
|
|
|
psAnim3D->psNext = g_animGlobals.psAnimList;
|
|
|
|
g_animGlobals.psAnimList = (BASEANIM * ) psAnim3D;
|
|
|
|
|
|
|
|
/* update globals */
|
|
|
|
g_animGlobals.uwCurObj = 0;
|
|
|
|
|
2008-03-24 09:51:17 -07:00
|
|
|
return true;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
void anim_BeginScript()
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
/* update globals */
|
|
|
|
g_animGlobals.uwCurState = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
BOOL anim_EndScript()
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
BASEANIM *psAnim;
|
|
|
|
|
|
|
|
/* get pointer to current anim */
|
|
|
|
psAnim = g_animGlobals.psAnimList;
|
|
|
|
|
|
|
|
if ( g_animGlobals.uwCurState != psAnim->uwStates )
|
|
|
|
{
|
2009-06-07 19:51:16 -07:00
|
|
|
ASSERT(false, "States in current anim not consistent with header");
|
2008-03-24 09:51:17 -07:00
|
|
|
return false;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* update globals */
|
|
|
|
g_animGlobals.uwCurObj++;
|
|
|
|
|
2008-03-24 09:51:17 -07:00
|
|
|
return true;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
BOOL anim_AddFrameToAnim(int iFrame, Vector3i vecPos, Vector3i vecRot, Vector3i vecScale)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
ANIM_STATE *psState;
|
|
|
|
BASEANIM *psAnim;
|
|
|
|
UWORD uwState;
|
|
|
|
|
|
|
|
/* get pointer to current anim */
|
|
|
|
psAnim = g_animGlobals.psAnimList;
|
|
|
|
|
|
|
|
/* check current anim valid */
|
2006-08-23 05:58:48 -07:00
|
|
|
ASSERT( psAnim != NULL, "anim_AddFrameToAnim: NULL current anim\n" );
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* check frame number in range */
|
2006-08-23 05:58:48 -07:00
|
|
|
ASSERT( iFrame<psAnim->uwStates,
|
2007-06-28 10:47:08 -07:00
|
|
|
"anim_AddFrameToAnim: frame number %i > %i frames in imd\n",
|
2006-08-23 05:58:48 -07:00
|
|
|
iFrame, psAnim->uwObj );
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* get state */
|
|
|
|
uwState = (g_animGlobals.uwCurObj * psAnim->uwStates) +
|
|
|
|
g_animGlobals.uwCurState;
|
|
|
|
psState = &psAnim->psStates[uwState];
|
|
|
|
|
|
|
|
/* set state pointer */
|
|
|
|
psState->uwFrame = (UWORD) iFrame;
|
|
|
|
|
|
|
|
psState->vecPos.x = vecPos.x;
|
|
|
|
psState->vecPos.y = vecPos.y;
|
|
|
|
psState->vecPos.z = vecPos.z;
|
|
|
|
|
|
|
|
/* max anims right-handed; Necromancer anims left */
|
|
|
|
psState->vecAngle.x = vecRot.x;
|
|
|
|
psState->vecAngle.y = vecRot.y;
|
|
|
|
psState->vecAngle.z = vecRot.z;
|
|
|
|
|
|
|
|
psState->vecScale.x = vecScale.x;
|
|
|
|
psState->vecScale.y = vecScale.y;
|
|
|
|
psState->vecScale.z = vecScale.z;
|
|
|
|
|
|
|
|
/* update globals */
|
|
|
|
g_animGlobals.uwCurState++;
|
|
|
|
|
2008-03-24 09:51:17 -07:00
|
|
|
return true;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
BASEANIM *anim_GetAnim(UWORD uwAnimID)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
BASEANIM *psAnim;
|
|
|
|
|
|
|
|
/* find matching anim id in list */
|
|
|
|
psAnim = g_animGlobals.psAnimList;
|
|
|
|
while( psAnim != NULL && psAnim->uwID != uwAnimID )
|
|
|
|
{
|
|
|
|
psAnim = psAnim->psNext;
|
|
|
|
}
|
|
|
|
|
|
|
|
return psAnim;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
void anim_SetVals(char szFileName[], UWORD uwAnimID)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
/* get track pointer from resource */
|
2006-09-17 13:39:25 -07:00
|
|
|
BASEANIM *psAnim = (BASEANIM*)resGetData( "ANI", szFileName );
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
if ( psAnim == NULL )
|
|
|
|
{
|
2009-06-07 19:51:16 -07:00
|
|
|
ASSERT(false, "Can't find anim %s", szFileName);
|
2007-06-28 10:47:08 -07:00
|
|
|
return ;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* set anim vals */
|
|
|
|
psAnim->uwID = uwAnimID;
|
2008-05-25 06:46:49 -07:00
|
|
|
sstrcpy(psAnim->szFileName, szFileName);
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2007-04-09 04:31:05 -07:00
|
|
|
BASEANIM *anim_LoadFromFile(PHYSFS_file* fileHandle)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2008-03-24 09:51:17 -07:00
|
|
|
if ( ParseResourceFile( fileHandle ) == false )
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2009-06-07 19:51:16 -07:00
|
|
|
ASSERT(false, "Couldn't parse file");
|
2007-06-28 10:47:08 -07:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* loaded anim is at head of list */
|
|
|
|
return g_animGlobals.psAnimList;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
UWORD anim_GetAnimID(char *szName)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
BASEANIM *psAnim;
|
|
|
|
char *cPos = strstr( szName, ".ani" );
|
|
|
|
|
|
|
|
if ( cPos == NULL )
|
|
|
|
{
|
2009-06-07 19:51:16 -07:00
|
|
|
ASSERT(false, "%s isn't .ani file", szName);
|
2007-06-28 10:47:08 -07:00
|
|
|
return NO_ANIM;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* find matching anim string in list */
|
|
|
|
psAnim = g_animGlobals.psAnimList;
|
2006-09-23 07:56:18 -07:00
|
|
|
while( psAnim != NULL && strcasecmp( psAnim->szFileName, szName ) != 0 )
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
psAnim = psAnim->psNext;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( psAnim != NULL )
|
|
|
|
{
|
|
|
|
return psAnim->uwID;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return NO_ANIM;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
iIMDShape *anim_GetShapeFromID(UWORD uwID)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2008-01-10 14:18:20 -08:00
|
|
|
BASEANIM *psAnim = g_animGlobals.psAnimList;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* find matching anim id in list */
|
|
|
|
while( psAnim != NULL && psAnim->uwID != uwID )
|
|
|
|
{
|
|
|
|
psAnim = psAnim->psNext;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( psAnim == NULL )
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-01-10 14:18:20 -08:00
|
|
|
ANIM3D *psAnim3D = (ANIM3D *)psAnim;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
ASSERT(psAnim3D != NULL, "anim_GetShapeFromID: invalid anim pointer");
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
return psAnim3D->psFrames;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
UWORD anim_GetFrame3D(ANIM3D *psAnim, UWORD uwObj, UDWORD udwGameTime, UDWORD udwStartTime,
|
|
|
|
UDWORD udwStartDelay, Vector3i *psVecPos, Vector3i *psVecRot, Vector3i *psVecScale)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2006-11-04 15:16:51 -08:00
|
|
|
SDWORD dwTime;
|
2007-06-28 10:47:08 -07:00
|
|
|
UWORD uwState, uwFrame;
|
|
|
|
ANIM_STATE *psState;
|
|
|
|
|
|
|
|
/* calculate current anim frame */
|
|
|
|
dwTime = udwGameTime - udwStartTime - udwStartDelay;
|
|
|
|
|
|
|
|
/* return NULL if animation still delayed */
|
|
|
|
if ( dwTime < 0 )
|
|
|
|
{
|
|
|
|
return ANIM_DELAYED;
|
|
|
|
}
|
|
|
|
|
2008-01-10 14:18:20 -08:00
|
|
|
uwFrame = (dwTime % psAnim->uwAnimTime) * psAnim->uwFrameRate / 1000;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* check in range */
|
2008-01-10 14:18:20 -08:00
|
|
|
ASSERT(uwFrame<psAnim->uwStates, "anim_GetObjectFrame3D: error in animation calculation");
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* find current state */
|
|
|
|
uwState = (uwObj * psAnim->uwStates) + uwFrame;
|
|
|
|
psState = &psAnim->psStates[uwState];
|
|
|
|
|
|
|
|
psVecPos->x = psState->vecPos.x / INT_SCALE;
|
|
|
|
psVecPos->y = psState->vecPos.y / INT_SCALE;
|
|
|
|
psVecPos->z = psState->vecPos.z / INT_SCALE;
|
|
|
|
|
|
|
|
psVecRot->x = psState->vecAngle.x * DEG_1 / INT_SCALE;
|
|
|
|
psVecRot->y = psState->vecAngle.y * DEG_1 / INT_SCALE;
|
|
|
|
psVecRot->z = psState->vecAngle.z * DEG_1 / INT_SCALE;
|
|
|
|
|
|
|
|
psVecScale->x = psState->vecScale.x;
|
|
|
|
psVecScale->y = psState->vecScale.y;
|
|
|
|
psVecScale->z = psState->vecScale.z;
|
|
|
|
|
|
|
|
if ( psAnim->ubType == ANIM_3D_TRANS )
|
|
|
|
{
|
|
|
|
return uwFrame;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return psAnim->psStates[uwState].uwFrame;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************/
|