+ static int ep_reflecting[] =
+ {
+ };
+ static int ep_reflecting_num = sizeof(ep_reflecting) / sizeof(int);
+
+ static int ep_absorbing[] =
+ {
+ };
+ static int ep_absorbing_num = sizeof(ep_absorbing) / sizeof(int);
+
+ static int ep_inactive[] =
+ {
+ };
+ static int ep_inactive_num = sizeof(ep_inactive) / sizeof(int);
+
+ static int ep_wall[] =
+ {
+ };
+ static int ep_wall_num = sizeof(ep_wall) / sizeof(int);
+
+ static int ep_pacman[] =
+ {
+ EL_PACMAN_RIGHT,
+ EL_PACMAN_UP,
+ EL_PACMAN_LEFT,
+ EL_PACMAN_DOWN,
+ };
+ static int ep_pacman_num = sizeof(ep_pacman) / sizeof(int);
+
+ static int ep_envelope[] =
+ {
+ EL_ENVELOPE_1,
+ EL_ENVELOPE_2,
+ EL_ENVELOPE_3,
+ EL_ENVELOPE_4,
+ };
+ static int ep_envelope_num = sizeof(ep_envelope) / sizeof(int);
+
+ static long ep_bit[] =
+ {
+ EP_BIT_GRID,
+ EP_BIT_MCDUFFIN,
+ EP_BIT_RECTANGLE,
+ EP_BIT_MIRROR,
+ EP_BIT_MIRROR_FIXED,
+ EP_BIT_POLAR,
+ EP_BIT_POLAR_CROSS,
+ EP_BIT_BEAMER,
+ EP_BIT_REFLECTING,
+ EP_BIT_ABSORBING,
+ EP_BIT_INACTIVE,
+ EP_BIT_WALL,
+ EP_BIT_PACMAN,
+ EP_BIT_ENVELOPE,
+ };
+ static int *ep_array[] =
+ {
+ ep_grid,
+ ep_mcduffin,
+ ep_rectangle,
+ ep_mirror,
+ ep_mirror_fixed,
+ ep_polar,
+ ep_polar_cross,
+ ep_beamer,
+ ep_reflecting,
+ ep_absorbing,
+ ep_inactive,
+ ep_wall,
+ ep_pacman,
+ ep_envelope,
+ };
+ static int *ep_num[] =
+ {
+ &ep_grid_num,
+ &ep_mcduffin_num,
+ &ep_rectangle_num,
+ &ep_mirror_num,
+ &ep_mirror_fixed_num,
+ &ep_polar_num,
+ &ep_polar_cross_num,
+ &ep_beamer_num,
+ &ep_reflecting_num,
+ &ep_absorbing_num,
+ &ep_inactive_num,
+ &ep_wall_num,
+ &ep_pacman_num,
+ &ep_envelope_num,
+ };
+ static int num_properties = sizeof(ep_num) / sizeof(int *);
+
+ for (i = 0; i < MAX_ELEMENTS; i++)
+ Elementeigenschaften[i] = 0;
+
+ for (i = 0; i < num_properties; i++)
+ for (j = 0; j < *(ep_num[i]); j++)
+ Elementeigenschaften[(ep_array[i])[j]] |= ep_bit[i];
+
+ for (i = EL_CHAR_START; i <= EL_CHAR_END; i++)
+ Elementeigenschaften[i] |= (EP_BIT_CHAR | EP_BIT_INACTIVE);
+
+ for (i = EL_WALL_START; i <= EL_WALL_END; i++)
+ Elementeigenschaften[i] |= EP_BIT_WALL;
+}
+
+void mm_open_all(void)
+{
+ InitElementProperties_MM();