B.A.R.G.A.M.E. v2.0 El Farol Bar Problem Implementation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Defines
Doxygen Specific Source Code/Form1.h
Go to the documentation of this file.

    00001 #include "chartdir.h"
    00002 #include <windows.h>
    00003 #include "Form1.h"
    00004 #include "Form2.h"
    00005 #include "Town.h"
    00006
    00007 #define NUMBER_OF_AGENTS 16348
    00008 #define NUMBER_OF_BARS 255
    00009 #define PERCENT_CAPACITY 100
    00010 #define MAX_ALPHA 100
    00011 #define MAX_AGE 100
    00012
    00013
    00014 namespace BARGAME {
    00015
    00016         using namespace System;
    00017         using namespace System::ComponentModel;
    00018         using namespace System::Collections;
    00019         using namespace System::Windows::Forms;
    00020         using namespace System::Data;
    00021         using namespace System::Drawing;
    00022
    00023 public ref class Form1 : public System::Windows::Forms::Form{
    00024
    00025 public:
    00027
    00031         Form1();
    00033
    00036         ~Form1();
    00037
    00038 protected:
    00040         int *percentbarcap1;
    00042         int *staticbarcap1;
    00044         int grpsize;
    00046         int avgage;
    00048         int alpha;
    00050         Form^ form2;
    00052         double numagents;
    00054         double numbars;
    00055
    00057
    00062         System::Void button1_Click(System::Object^  sender, System::EventArgs^  e);
    00064
    00067         System::Void radioButton1_CheckedChanged(System::Object^  sender, System::EventArgs^  e);
    00069
    00072         System::Void radioButton2_CheckedChanged(System::Object^  sender, System::EventArgs^  e);
    00074
    00079         System::Void textBox1_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00081
    00086         System::Void textBox3_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00088
    00093         System::Void textBox5_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00095
    00100         System::Void textBox6_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00102
    00107         System::Void textBox4_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00109
    00114         System::Void textBox7_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00116
    00121         System::Void textBox2_Validating(System::Object ^  sender, System::ComponentModel::CancelEventArgs ^  e);
    00123
    00126         System::Void checkBox3_CheckedChanged_1(System::Object^  sender, System::EventArgs^  e);
    00128
    00131         System::Void checkBox2_CheckedChanged(System::Object^  sender, System::EventArgs^  e);
    00133
    00136         System::Void checkBox1_CheckedChanged_1(System::Object^  sender, System::EventArgs^  e);
    00137 }
    00138 }