about summary refs log tree commit diff stats
path: root/data/maps/the_darkroom/rooms
ModeNameSize
-rw-r--r--Congruent Entrance.txtpb151log stats plain blame
-rw-r--r--Cyan Hallway.txtpb144log stats plain blame
-rw-r--r--Double Sided Entrance.txtpb155log stats plain blame
-rw-r--r--First Room.txtpb783log stats plain blame
-rw-r--r--S Room.txtpb84log stats plain blame
-rw-r--r--Second Room.txtpb875log stats plain blame
-rw-r--r--Third Room.txtpb1126log stats plain blame
ng.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef FORM_H_7EFBC970
#define FORM_H_7EFBC970

#include <string>
#include <set>

namespace verbly {
  namespace generator {

    class pronunciation;
    class database;

    class form {
    public:

      // Constructor

      explicit form(std::string text);

      // Mutators

      void addPronunciation(const pronunciation& p);

      // Accessors

      int getId() const
      {
        return id_;
      }

      std::string getText() const
      {
        return text_;
      }

      int getComplexity() const
      {
        return complexity_;
      }

      bool isProper() const
      {
        return proper_;
      }

      int getLength() const
      {
        return length_;
      }

      std::set<const pronunciation*> getPronunciations() const
      {
        return pronunciations_;
      }

    private:

      static int nextId_;

      const int id_;
      const std::string text_;
      const int complexity_;
      const bool proper_;
      const int length_;

      std::set<const pronunciation*> pronunciations_;

    };

    // Serializer

    database& operator<<(database& db, const form& arg);

  };
};

#endif /* end of include guard: FORM_H_7EFBC970 */