aggixx

Untitled

Apr 10th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. else if ( name_str == "crit_pct" )
  2. {
  3. struct crit_pct_expr_t : public expr_t
  4. {
  5. action_t* action;
  6. crit_pct_expr_t( action_t* a ) : expr_t( "crit_pct" ), action( a ) {}
  7. virtual double evaluate()
  8. {
  9. return action -> composite_crit() * 100.0;
  10. }
  11. };
  12. return new crit_pct_expr_t( this );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment