Beispiel #1
0
 public void Initialize(IBall cueBall)
 {
     ShotCount  = 0;
     m_ShotData = new ShotData(cueBall);
     //Add mouse hook to application
     m_MouseHook            = new MouseHook();
     m_MouseHook.MouseDown += OnMouseDown;
     m_MouseHook.MouseUp   += OnMouseUp;
     Application.AddMessageFilter(m_MouseHook);
 }
Beispiel #2
0
 public Brain()
 {
     m_ShotCounter = 0;
     m_ShotEnabled = true;
     m_IsShooting  = false;
     m_MouseDownX  = 0;
     m_MouseDownY  = 0;
     m_MouseHook   = null;
     Score         = 0;
     ShotCount     = 0;
 }