Interface Element

All Known Implementing Classes:
Character, Component, Item, Passage, Place, Positionable

public interface Element
The Element interface.* This type ust be added to the Component of the Composite to ensure that all types of the structure implement it.
Author:
José Paulo Leal jpleal@fc.up.pt
Implementation Note:
abstract component of the Visitordesign pattern with the same name.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Visitor visitor)
    Accept a visitor to operate on a node of the composite structure
  • Method Details

    • accept

      void accept(Visitor visitor)
      Accept a visitor to operate on a node of the composite structure
      Parameters:
      visitor - to the node