Skip to content

Commit

Permalink
fix msvc build
Browse files Browse the repository at this point in the history
msvc doesn't allow std::queue of incomplete types.
  • Loading branch information
gfgtdf committed Sep 12, 2014
1 parent 162b781 commit 0e6a693
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions src/ai/testing/stage_sf_with_rca.hpp
Expand Up @@ -41,38 +41,6 @@ namespace testing_ai_default {
class turn_state;
class decision;

class strategy_formulation_with_rca: public virtual stage, public virtual rca_context {
public:
strategy_formulation_with_rca(ai_context &context, const config &cfg);

~strategy_formulation_with_rca();

bool do_play_stage();

void on_create();

config to_config() const;

rca_context& get_rca_context();

void simulate_states_ahead();

void set_optimal_strategy();

const turn_state simulate_state(const int decision_no_, const turn_state &state);

void switch_side();

void init_side();

private:
std::queue<turn_state> states_;

std::vector<bool> enemy_this_turn_; // Store if is enemy for this turn. Use in the set optimal strategy function.

boost::shared_ptr<candidate_action_evaluation_loop> rca_;
};

class decision
{
friend std::ostream& operator<<(std::ostream&, const decision&);
Expand Down Expand Up @@ -133,6 +101,38 @@ class turn_state
decision decision_;
};

class strategy_formulation_with_rca: public virtual stage, public virtual rca_context {
public:
strategy_formulation_with_rca(ai_context &context, const config &cfg);

~strategy_formulation_with_rca();

bool do_play_stage();

void on_create();

config to_config() const;

rca_context& get_rca_context();

void simulate_states_ahead();

void set_optimal_strategy();

const turn_state simulate_state(const int decision_no_, const turn_state &state);

void switch_side();

void init_side();

private:
std::queue<turn_state> states_;

std::vector<bool> enemy_this_turn_; // Store if is enemy for this turn. Use in the set optimal strategy function.

boost::shared_ptr<candidate_action_evaluation_loop> rca_;
};

} // of namespace testing_ai_default

} // of namespace ai
Expand Down

0 comments on commit 0e6a693

Please sign in to comment.