… | |
… | |
516 | op->instantiate (); |
516 | op->instantiate (); |
517 | |
517 | |
518 | return op; |
518 | return op; |
519 | } |
519 | } |
520 | |
520 | |
|
|
521 | object * |
|
|
522 | archetype::instance () |
|
|
523 | { |
|
|
524 | return arch_to_object (this); |
|
|
525 | } |
|
|
526 | |
521 | /* |
527 | /* |
522 | * Creates an object. This function is called by get_archetype() |
528 | * Creates an object. This function is called by get_archetype() |
523 | * if it fails to find the appropriate archetype. |
529 | * if it fails to find the appropriate archetype. |
524 | * Thus get_archetype() will be guaranteed to always return |
530 | * Thus get_archetype() will be guaranteed to always return |
525 | * an object, and never NULL. |
531 | * an object, and never NULL. |