Is there any kind of “expression class” (C++)

前端 未结 9 1412
眼角桃花
眼角桃花 2020-12-13 14:45

I am creating a game that lets the player enter input, changes some states, then checks if a \"goal value\" is true (obviously this description is muchly simplified), and I

9条回答
  •  执念已碎
    2020-12-13 15:26

    No, there isn't anything like that. Perhaps an expression class is a little too abstract. What about defining various Goal classes with an IsReached() method?

提交回复
热议问题