SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
target_wrapper_expr_t Struct Reference
Inheritance diagram for target_wrapper_expr_t:
expr_t

Public Member Functions

 target_wrapper_expr_t (action_t &a, util::string_view name_str, util::string_view expr_str)
 
virtual player_ttarget () const
 
double evaluate () override
 
- Public Member Functions inherited from expr_t
const char * name () const
 
int id () const
 
double eval ()
 
bool success ()
 
bool always_true ()
 
bool always_false ()
 
virtual bool is_constant ()
 
virtual bool is_analyze_expression ()
 

Public Attributes

action_taction
 
std::vector< std::unique_ptr< expr_t > > proxy_expr
 
std::string suffix_expr_str
 
- Public Attributes inherited from expr_t
expression::token_e op_
 

Additional Inherited Members

- Static Public Member Functions inherited from expr_t
static double coerce (timespan_t t)
 
template<typename T >
static double coerce (T t)
 
static std::unique_ptr< expr_tparse (action_t *, util::string_view expr_str, bool optimize=false)
 
template<class T >
static std::unique_ptr< expr_tcreate_constant (util::string_view name, T value)
 
static void optimize_expression (std::unique_ptr< expr_t > &expression, bool analyze_further=false, int spacing=0)
 
static void optimize_expression (std::unique_ptr< expr_t > &expression, sim_t &sim)
 
- Protected Member Functions inherited from expr_t
 expr_t (util::string_view name, expression::token_e op=expression::TOK_UNKNOWN)