这个part开始是行为型设计模式。

chain of Responsibility

pointer chain

1
2
3
4
struct creature {
  string name;
  int attack, defense;
};