#include <Feature.h>
Inheritance diagram for ogs::core::Feature:


Public Member Functions | |
| virtual bool | attachObject (Object &object) | 
| Attach this feature to an object.  | |
| virtual bool | detachObject () | 
| Detach this feature from an object.  | |
| Object * | getObject () const | 
| Determine the object that this feature is currently attached to.  | |
Protected Member Functions | |
| Feature () | |
| Create a new feature. | |
| virtual bool | canAttach (const Object &object) const | 
| Determine if this feature can be attached to an object.  | |
| virtual bool | canDetach () const | 
| Determine if this feature can be detached from an object.  | |
      
  | 
  
| 
 This method should always be called first by derived classes that override this method. 
 
 
 Implements ogs::support::Attachable. Reimplemented in ogs::feats::Alertness, ogs::feats::ImprovedInitiative, ogs::feats::ImprovedSave, and ogs::feats::Toughness.  | 
  
      
  | 
  
| 
 A feature can not be attached to itself or if it is already attached. 
 
 
 Reimplemented in ogs::core::Feat.  | 
  
      
  | 
  
| 
 
 
  | 
  
      
  | 
  
| 
 This method should always be called last by derived classes that override this method. 
 
 Implements ogs::support::Attachable. Reimplemented in ogs::feats::Alertness, ogs::feats::ImprovedInitiative, and ogs::feats::ImprovedSave.  | 
  
      
  | 
  
| 
 
 
 Implements ogs::support::Attachable.  | 
  
1.3