Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

my_game Class Reference

Inheritance diagram for my_game:

FACK List of all members.

Public Member Functions

 my_game (int argc, char **argv)

Protected Member Functions

void execute_action_verb_object (const pt< verb > v, const pt< obj_or_concept >, const pt< obj_or_concept >)
void execute_action_double_none_of_the_above (const pt< phys_obj > o1, const pt< phys_obj > o2)
void execute_action_object_object (const pt< obj_or_concept > o1, const pt< obj_or_concept > o2)
void save (ofstream &file) const
void load (ifstream &file)
void active_player_changed (pt< PC > new_active_player)

Private Attributes

pt< phys_objbook
pt< phys_objpencil
pt< phys_objleft_armchair
pt< phys_objright_armchair
pt< phys_objglass
pt< phys_objtable
pt< phys_objlamp
pt< phys_objmoose_head
pt< phys_objblue_guyb_item
pt< phys_objred_guybr_item
pt< phys_objshed_door
pt< phys_objexit_lounge
pt< phys_objshed_entrance
pt< phys_objfire
pt< phys_objfire_tools
pt< phys_objfireplace
pt< phys_objpile_of_wood
pt< phys_objright_painting
pt< phys_objleft_painting
pt< phys_objcarpet
pt< phys_objfloor
pt< phys_objlamp_cord
pt< phys_objshed_handle
pt< phys_objtreasure
pt< phys_objspot_in_ground
pt< phys_objdagger
pt< phys_objsheet
pt< phys_objlighter
pt< phys_objcork
pt< phys_objlabel
pt< phys_objwhole_bottle
pt< phys_objcabinet
pt< phys_objcab_drawer
pt< phys_objtorch_unlit
pt< phys_objtorch_lit
pt< concepttreasure_heard
pt< verbpick_up
pt< verbpush
pt< verbhit_hand
pt< verbrotate
pt< verbtalk
pt< verbeat
pt< verbbreathe
pt< verbwalk
pt< verbhit_foot
pt< verbenter
pt< verbsit
pt< verbclimb
pt< verbjump
pt< verbkiss
pt< verbread_aloud
pt< verbperson_give
pt< verblook
pt< verbopen
pt< verbturn_on
pt< verbthrow_at
pt< verbgive_to_someone
pt< containertable_drawer
pt< light_fixed_in_locfire_light
pt< light_fixed_in_loclamp_light
pt< light_fixed_in_locshed_sun_light
pt< light_fixed_in_locshed_moon_light
pt< light_across_loctorch_l
pt< PCblue_guybr
pt< PCred_guybr
pt< locationlounge
pt< locationshed
pt< layer_unlit_before_animbottle_layer
pt< layer_unlit_before_animbott_shad_layer
pt< layer_unlit_before_animglass_layer
pt< layer_unlit_before_animglass_shad_layer
pt< layer_unlit_before_animshed_open_door_layer
pt< bg_hot_zonebottle_zone
pt< bg_hot_zoneglass_zone
pt< bg_hot_zoneshed_entrance_zone
pt< bg_hot_zoneshed_closed_door_zone
pt< bg_hot_zoneshed_open_door_zone
pt< bg_hot_zoneshed_handle_zone
pt< bg_hot_zonetreasure_zone
pt< mood_tmood_normal
pt< mood_tmood_puzzled_scratch_head
pt< animationguy_blue_pick_up_right_normal
pt< animationguy_red_pick_up_right_normal
int_pair point_for_sitting_on_left_armch
int_pair point_for_sitting_on_right_armch
pt< zoomablebottle
bool first_time_you_turn_on_lamp

Constructor & Destructor Documentation

my_game::my_game int  argc,
char **  argv
 

Todo:
change image

Definition at line 131 of file game.cc.

References blue_guyb_item, blue_guybr, book, bott_shad_layer, bottle, bottle_layer, bottle_zone, breathe, cab_drawer, cabinet, CAN_CONTAIN_ANYTHING, carpet, climb, CONCEPTS, CONTACT, cork, create_rect(), d_down, d_left, d_right, d_up, dagger, eat, enter, exit_lounge, fire, fire_light, fire_tools, fireplace, first_time_you_turn_on_lamp, floor, anim_frame::from_sdl_surface(), cfsurf::from_sdl_surface(), give_to_someone, glass, glass_layer, glass_shad_layer, glass_zone, guy_blue_pick_up_right_normal, guy_red_pick_up_right_normal, hd_left, hd_right, hit_foot, hit_hand, jump, kiss, label, lamp, lamp_cord, lamp_light, left_armchair, left_painting, lighter, look, lounge, map_get(), mood_normal, mood_puzzled_scratch_head, moose_head, NEW, open, PASSING, pencil, person_give, PHYS_OBJECTS, pick_up, pile_of_wood, point_for_sitting_on_left_armch, point_for_sitting_on_right_armch, push, read_aloud, RECOIL, red_guybr, red_guybr_item, right_armchair, right_painting, rotate, room_scaling_data::scaling_at_y1, room_scaling_data::scaling_at_y2, set_of(), shed, shed_closed_door_zone, shed_door, shed_entrance, shed_entrance_zone, shed_handle, shed_handle_zone, shed_moon_light, shed_open_door_layer, shed_open_door_zone, shed_sun_light, sheet, sit, spot_in_ground, string_of_int(), table, table_drawer, talk, throw_at, torch_l, torch_lit, torch_unlit, treasure, treasure_heard, treasure_zone, turn_on, ulist(), vector_of(), walk, walking_map_from_sdl_surface(), whole_bottle, room_scaling_data::y1, and room_scaling_data::y2.


Member Function Documentation

void my_game::active_player_changed pt< PC new_active_player  )  [protected, virtual]
 

Reimplemented from FACK.

Definition at line 125 of file game.cc.

References NEW.

void my_game::execute_action_double_none_of_the_above const pt< phys_obj o1,
const pt< phys_obj o2
[protected, virtual]
 

Implements FACK.

Definition at line 1980 of file game.cc.

References close_any_open_container, FACK::execute_commands(), mood_normal, and NEW.

void my_game::execute_action_object_object const pt< obj_or_concept o1,
const pt< obj_or_concept o2
[protected, virtual]
 

Implements FACK.

Definition at line 1996 of file game.cc.

References blue_guybr, FACK::contains_recursively(), FACK::define_dialog_aux(), do_not_close_containers, FACK::execute_commands(), lighter, MATCH_IN_ANY_ORDER, mood_normal, mood_puzzled_scratch_head, NEW, red_guybr, red_guybr_item, shed, shed_moon_light, shed_sun_light, SHOW, torch_lit, torch_unlit, treasure_heard, treasure_zone, and ulist().

void my_game::execute_action_verb_object const pt< verb v,
const pt< obj_or_concept ,
const pt< obj_or_concept
[protected, virtual]
 

Implements FACK.

Definition at line 1530 of file game.cc.

References blue_guyb_item, blue_guybr, bott_shad_layer, bottle, bottle_layer, bottle_zone, cab_drawer, cabinet, close_any_open_container, FACK::contains_not_recursively(), FACK::contains_recursively(), d_left, d_right, d_up, dagger, do_not_close_containers, enter, FACK::execute_commands(), exit_lounge, first_time_you_turn_on_lamp, give_to_someone, glass, glass_layer, glass_shad_layer, glass_zone, guy_blue_pick_up_right_normal, guy_red_pick_up_right_normal, HIDE, in(), lamp, lamp_cord, lamp_light, left_armchair, look, lounge, mood_normal, mood_puzzled_scratch_head, NEW, open, person_give, pick_up, point_for_sitting_on_left_armch, point_for_sitting_on_right_armch, push, red_guybr, red_guybr_item, right_armchair, rotate, shed, shed_closed_door_zone, shed_door, shed_entrance, shed_entrance_zone, shed_handle, shed_handle_zone, shed_open_door_layer, shed_open_door_zone, sheet, SHOW, sit, spot_in_ground, table, table_drawer, talk, throw_at, torch_lit, torch_unlit, treasure_heard, turn_on, walk, and whole_bottle.

void my_game::load ifstream &  file  )  [protected]
 

Definition at line 2103 of file game.cc.

References first_time_you_turn_on_lamp.

void my_game::save ofstream &  file  )  const [protected]
 

Definition at line 2095 of file game.cc.

References first_time_you_turn_on_lamp.


Member Data Documentation

pt<phys_obj> my_game::blue_guyb_item [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<PC> my_game::blue_guybr [private]
 

Definition at line 94 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::book [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<layer_unlit_before_anim> my_game::bott_shad_layer [private]
 

Definition at line 98 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<zoomable> my_game::bottle [private]
 

Definition at line 112 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<layer_unlit_before_anim> my_game::bottle_layer [private]
 

Definition at line 98 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::bottle_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::breathe [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::cab_drawer [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::cabinet [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::carpet [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<verb> my_game::climb [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::cork [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::dagger [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::eat [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<verb> my_game::enter [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::exit_lounge [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::fire [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<light_fixed_in_loc> my_game::fire_light [private]
 

Definition at line 91 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::fire_tools [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::fireplace [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

bool my_game::first_time_you_turn_on_lamp [private]
 

Definition at line 117 of file game.cc.

Referenced by execute_action_verb_object(), load(), my_game(), and save().

pt<phys_obj> my_game::floor [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<verb> my_game::give_to_someone [private]
 

Definition at line 87 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::glass [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<layer_unlit_before_anim> my_game::glass_layer [private]
 

Definition at line 98 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<layer_unlit_before_anim> my_game::glass_shad_layer [private]
 

Definition at line 98 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::glass_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<animation> my_game::guy_blue_pick_up_right_normal [private]
 

Definition at line 107 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<animation> my_game::guy_red_pick_up_right_normal [private]
 

Definition at line 107 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::hit_foot [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<verb> my_game::hit_hand [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<verb> my_game::jump [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<verb> my_game::kiss [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::label [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::lamp [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::lamp_cord [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<light_fixed_in_loc> my_game::lamp_light [private]
 

Definition at line 91 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::left_armchair [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::left_painting [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::lighter [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_object_object(), and my_game().

pt<verb> my_game::look [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<location> my_game::lounge [private]
 

Definition at line 96 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<mood_t> my_game::mood_normal [private]
 

Definition at line 104 of file game.cc.

Referenced by execute_action_double_none_of_the_above(), execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<mood_t> my_game::mood_puzzled_scratch_head [private]
 

Definition at line 104 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::moose_head [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<verb> my_game::open [private]
 

Definition at line 87 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::pencil [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<verb> my_game::person_give [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::pick_up [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::pile_of_wood [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

int_pair my_game::point_for_sitting_on_left_armch [private]
 

Definition at line 109 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

int_pair my_game::point_for_sitting_on_right_armch [private]
 

Definition at line 110 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::push [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::read_aloud [private]
 

Definition at line 81 of file game.cc.

Referenced by my_game().

pt<PC> my_game::red_guybr [private]
 

Definition at line 94 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::red_guybr_item [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::right_armchair [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::right_painting [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<verb> my_game::rotate [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<location> my_game::shed [private]
 

Definition at line 96 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::shed_closed_door_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::shed_door [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::shed_entrance [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::shed_entrance_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::shed_handle [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::shed_handle_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<light_fixed_in_loc> my_game::shed_moon_light [private]
 

Definition at line 91 of file game.cc.

Referenced by execute_action_object_object(), and my_game().

pt<layer_unlit_before_anim> my_game::shed_open_door_layer [private]
 

Definition at line 98 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::shed_open_door_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<light_fixed_in_loc> my_game::shed_sun_light [private]
 

Definition at line 91 of file game.cc.

Referenced by execute_action_object_object(), and my_game().

pt<phys_obj> my_game::sheet [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::sit [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::spot_in_ground [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::table [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<container > my_game::table_drawer [private]
 

Definition at line 89 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::talk [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::throw_at [private]
 

Definition at line 87 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<light_across_loc> my_game::torch_l [private]
 

Definition at line 92 of file game.cc.

Referenced by my_game().

pt<phys_obj> my_game::torch_lit [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::torch_unlit [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::treasure [private]
 

Definition at line 68 of file game.cc.

Referenced by my_game().

pt<concept> my_game::treasure_heard [private]
 

Definition at line 79 of file game.cc.

Referenced by execute_action_object_object(), execute_action_verb_object(), and my_game().

pt<bg_hot_zone> my_game::treasure_zone [private]
 

Definition at line 100 of file game.cc.

Referenced by execute_action_object_object(), and my_game().

pt<verb> my_game::turn_on [private]
 

Definition at line 87 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<verb> my_game::walk [private]
 

Definition at line 81 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().

pt<phys_obj> my_game::whole_bottle [private]
 

Definition at line 68 of file game.cc.

Referenced by execute_action_verb_object(), and my_game().


The documentation for this class was generated from the following file:
Generated on Wed May 25 15:36:11 2005 for FACK by  doxygen 1.4.0