示例#1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     // Form Load 시점에 Class 생성
     _cRobot = new CRobot("Robot");
     _cDoor1 = new CDoor("DoorLeft");
     _cDoor2 = new CDoor("DoorRight");
 }
示例#2
0
        /// <summary>
        /// 상태가 틀어 졌을 경우 초기 상태를 맞춰 주기 위해 추가
        /// </summary>
        private void initDraw()
        {
            _cRobot        = null;
            _cDoor1        = null;
            _cDoor2        = null;
            _iRobot_Rotate = 0;

            _cRobot = new CRobot("Robot");
            _cDoor1 = new CDoor("DoorLeft");
            _cDoor2 = new CDoor("DoorRight");

            fRobotDraw(_iRobot_Rotate, 0, false);
            fDoor1Draw(0);
            fDoor2Draw(0);
        }