⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shortcutstrategy.c

📁 为参加日本的ET机器人比赛写的LEGO机器人控制程序
💻 C
字号:
/******************************************************************************\
*
* File:          ShortcutStrategy.C
* Creation date: July 05, 2008 14:29
* Latest update: July 09, 2008 16:39
* Author:        ClassBuilder
*                XXXX
* Purpose:       Method implementations of class 'ShortcutStrategy'
* CB version:    ClassBuilder Version 2.9 (PR523)
*
* Modifications: @INSERT_MODIFICATIONS(* )
* July 09, 2008 16:35 Chijinliang
*     Added method 'ShortcutStrategy'
* July 05, 2008 21:03 Chijinliang
*     Updated code of method 'Judge'
* July 05, 2008 20:28 Chijinliang
*     Updated code of method 'Judge'
* July 05, 2008 14:29 Chijinliang
*     Added method 'DestructorInclude'
*     Added method 'ConstructorInclude'
*     Added method 'Judge'
*     Added method '~ShortcutStrategy'
*     Added inheritance 'Strategy'
*
* Copyright 2008, XXXXX
* All rights are reserved. Reproduction in whole or part is prohibited
* without the written consent of the copyright owner.
*
\******************************************************************************/
// Master include file
#include "JASTInTime.h"


using namespace JASTInTime;




/*
Constructor method.
*/
ShortcutStrategy::ShortcutStrategy(TrackType trackType, unsigned int minColor,
                                   unsigned int maxColor)
    : Strategy(trackType, minColor, maxColor)
{
    ConstructorInclude();

    // Put in your own code
}


/*
Destructor method.
*/
ShortcutStrategy::~ShortcutStrategy()
{
    // Put in your own code

    DestructorInclude();
}


/*
the return value is used to indicate if target speed or target steering angle was modified
*/
const Command* ShortcutStrategy::Judge(unsigned int color, int steeringAngle)
{
    return Strategy::Judge(color, steeringAngle);
}


/*
Method which must be called first in a constructor.
*/
void ShortcutStrategy::ConstructorInclude()
{
}


/*
Method which must be called first in a destructor.
*/
void ShortcutStrategy::DestructorInclude()
{
}


// Methods for the relation(s) of the class


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -