Ignore:
Timestamp:
Feb 19, 2010, 11:49:54 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
01d28a
Parents:
5d4edf
Message:

Added a mechanism that allows the world to track changes done by the manipulators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/World.cpp

    r5d4edf r9ef76a  
    3737  return molecules_deprecated->ListOfMolecules.size();
    3838}
     39
     40/******************** Methods to change World state *********************/
    3941
    4042molecule* World::createMolecule(){
     
    5355}
    5456
     57/********************* Internal Change methods for double Callback and Observer mechanism ********/
     58
     59void World::doManipulate(ManipulateAtomsProcess *proc){
     60  proc->signOn(this);
     61  {
     62    OBSERVE;
     63    proc->doManipulate(this);
     64  }
     65  proc->signOff(this);
     66}
     67
    5568/******************************* Iterators ********************************/
    5669
Note: See TracChangeset for help on using the changeset viewer.