Skip to content
Permalink
Browse files

Removes Generator from Insults

  • Loading branch information
remram44 committed Feb 9, 2015
1 parent bb4b6df commit 6b1683a53fdb1103b2b4da9c53011cde0b05f1aa
Showing with 5 additions and 9 deletions.
  1. +2 −4 insults.cpp
  2. +3 −5 insults.h
@@ -60,8 +60,7 @@ size_t CombinedChoosers::size() const


Insults::Insults()
: m_Generator(CHOICES),
m_Choosers{
: m_Choosers{
Chooser{"vas-y clique "},
Chooser{"salope",
"gros con",
@@ -114,8 +113,7 @@ Insults::Insults()
assert(m_Choosers.size() == CHOICES);
}

std::string Insults::generate(Key &state)
std::string Insults::generate(Key state)
{
state = m_Generator.generate(state);
return m_Choosers(state);
}
@@ -41,15 +41,13 @@ class CombinedChoosers {
class Insults {

private:
static constexpr Key CHOICES = 3609722880;

Generator m_Generator;

CombinedChoosers m_Choosers;

public:
static constexpr Key CHOICES = 3609722880;

Insults();
std::string generate(Key &state);
std::string generate(Key state);

};

0 comments on commit 6b1683a

Please sign in to comment.
You can’t perform that action at this time.