Overte C++ Documentation
AndConditional.h
1 //
2 // Created by Bradley Austin Davis 2015/10/20
3 // Copyright 2015 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #pragma once
10 #ifndef hifi_Controllers_AndConditional_h
11 #define hifi_Controllers_AndConditional_h
12 
13 #include "../Conditional.h"
14 
15 namespace controller {
16 
17 class AndConditional : public Conditional {
18 public:
19  using Pointer = std::shared_ptr<AndConditional>;
20 
21  AndConditional(Conditional::List children)
22  : _children(children) {}
23 
24  AndConditional(Conditional::Pointer& first, Conditional::Pointer& second)
25  : _children({ first, second }) {}
26 
27  virtual bool satisfied() override;
28 
29 private:
30  Conditional::List _children;
31 };
32 
33 }
34 
35 #endif