Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 11:05:21 PM (18 years ago)
Author:
patrick
Message:

cr: init and reset phases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/cr_engine.cc

    r7937 r7940  
    1616#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION_REACTION
    1717
     18
     19
     20#include "collision.h"
     21#include "cr_defs.h"
     22
    1823#include "cr_engine.h"
    1924
     
    3035   this->setName("CREngine");
    3136
     37   this->init();
    3238}
    3339
     
    4551}
    4652
     53
     54void CREngine::init()
     55{
     56  // create a list of Collision events (precaching)
     57  Collision* collisions = new Collision[CR_MAX_COLLISIONS];
     58  for( int i = 0; i < CR_MAX_COLLISIONS; i++)
     59    this->cachedCollisions.push_back(collisions[i]);
     60}
     61
     62
     63void CREngine::reset()
     64{}
    4765
    4866
     
    7492
    7593}
     94
Note: See TracChangeset for help on using the changeset viewer.