- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/AddAction.cpp
rf10b0c rbe21fa 43 43 // execute action 44 44 atom * first = World::getInstance().createAtom(); 45 first->setType(params.elemental .get());46 first->setPosition(params.position .get());45 first->setType(params.elemental); 46 first->setPosition(params.position); 47 47 LOG(1, "Adding new atom with element " << first->getType()->getName() << " at " << (first->getPosition()) << "."); 48 48 // TODO: remove when all of World's atoms are stored. … … 68 68 69 69 atom * first = World::getInstance().createAtom(); 70 first->setType(state->params.elemental .get());71 first->setPosition(state->params.position .get());72 LOG(1, "Re-adding new atom with element " << state->params.elemental .get()->getName() << " at " << state->params.position.get()<< ".");70 first->setType(state->params.elemental); 71 first->setPosition(state->params.position); 72 LOG(1, "Re-adding new atom with element " << state->params.elemental->getName() << " at " << state->params.position << "."); 73 73 // TODO: remove when all of World's atoms are stored. 74 74 std::vector<molecule *> molecules = World::getInstance().getAllMolecules();
Note:
See TracChangeset
for help on using the changeset viewer.