Ignore:
Timestamp:
Mar 4, 2010, 10:34:52 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
fe3540
Parents:
d50264 (diff), f058ef (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'StructureRefactoring' into MenuRefactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.hpp

    rd50264 rdb6b872  
    4040 */
    4141class atom : public TesselPoint, public TrajectoryParticle, public GraphNode, public BondedParticle, public virtual ParticleInfo, public virtual AtomInfo {
    42   friend atom* NewAtom();
     42  friend atom* NewAtom(atomId_t);
    4343  friend void  DeleteAtom(atom*);
    4444  public:
     
    7979  void setWorld(World*);
    8080
    81   virtual int getId();
    82   virtual void setId(int);
     81  virtual atomId_t getId();
     82  virtual bool changeId(atomId_t newId);
     83
     84  /**
     85   * this function sets the Id without notifying the world. Only use it, if the world has already
     86   * gotten an ID for this Atom.
     87   */
     88   virtual void setId(atomId_t);
     89
    8390  protected:
    8491    /**
     
    101108  private:
    102109    World* world;
    103     int id;
     110    atomId_t id;
    104111};
    105112
     
    109116 * Use World::createAtom() instead.
    110117 */
    111 atom* NewAtom();
     118atom* NewAtom(atomId_t _id);
    112119
    113120/**
Note: See TracChangeset for help on using the changeset viewer.