escape.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
escape.cc
Go to the documentation of this file.
1 /* escape.cc
2 */
3 #include "osl/rating/group/escape.h"
4
5 osl::rating::
6 FromEffectGroup::FromEffectGroup() : Group("FromEffect")
7 {
8 for (int a=0; a<3; ++a)
9 for (int d=0; d<3; ++d)
10 for (int p=0; p<8; ++p) // progress8
11 push_back(new FromEffect(a, d));
12 }
13
14 osl::rating::
15 PtypeAttackedGroup::PtypeAttackedGroup() : Group("PtypeAttacked")
16 {
17 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
18 for (int a=PTYPE_MIN; a<=PTYPE_MAX; ++a) {
19 for (int p=0; p<8; ++p) // progress8
20 push_back(new PtypeAttacked(static_cast<Ptype>(s), static_cast<Ptype>(a)));
21 }
22 }
23 }
24
25 osl::rating::
26 ImmediateEscapeGroup::ImmediateEscapeGroup() : Group("ImmediateEscape")
27 {
28 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
29 for (int a=PTYPE_PIECE_MIN; a<=PTYPE_MAX; ++a) {
30 for (int p=0; p<8; ++p) // progress8
31 push_back(new ImmediateEscape(static_cast<Ptype>(s), static_cast<Ptype>(a)));
32 }
33 }
34 }
35
36 osl::rating::
37 KingEscapeGroup::KingEscapeGroup() : Group("KingEscape")
38 {
39 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s)
40 push_back(new KingEscape(static_cast<Ptype>(s)));
41 }
42
43 /* ------------------------------------------------------------------------- */
44 // ;;; Local Variables:
45 // ;;; mode:c++
46 // ;;; c-basic-offset:2
47 // ;;; End: