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

📄 gamemodel.cc

📁 2007年机器人足球世界杯3D仿真组亚军
💻 CC
字号:
#include "gamemodel.hh"#include <GL/gl.h>using namespace bats;GameModel::GameModel()  :  d_fieldLength(100.0),     d_fieldWidth(70.0),     d_fieldHeight(0.0),     d_goalWidth(7.32),     d_goalDepth(5.0),     d_goalHeight(0.0),     d_borderSize(10.0),     d_freeKickDistance(0.0),     d_waitBeforeKickOff(0.0),     d_agentMass(0.0),     d_agentRadius(1.0),     d_agentMaxSpeed(0.0),     d_ballRadius(0.0),     d_ballMass(0.0),     d_ruleGoalPauseTime(0.0),     d_ruleKickInPauseTime(0.0),     d_ruleHalfTime(0.0),     d_time(0),     d_half(0),     d_scoreLeft(0),     d_scoreRight(0),     d_playMode(0),     d_flag1L(50, 35, 0),     d_flag2L(50, -35, 0),     d_flag1R(-50, 35, 0),     d_flag2R(-50, -35, 0),     d_goal1L(50, d_goalWidth / 2, 0),     d_goal2L(50, -d_goalWidth / 2, 0),     d_goal1R(-50, d_goalWidth / 2, 0),     d_goal2R(-50, -d_goalWidth / 2, 0),     d_ball(0, 0, 0)     //     d_teamLeft("Nameless"),     //     d_teamRight("No Name"){  /* Initialize the players */  PlayerInfo pi;  pi.team = 0;  pi.unum = 0;  pi.last = false;  pi.say = "Uninitialized!";  pi.extraGfx.gfx = new GFXObject; // \todo: deallocate extra.gfx!!  pi.extraGfx.scale = Vector3D(1.0,1.0,1.0);  d_team1.resize(11,pi);  for (unsigned i = 0; i < 11; ++i)    d_team1[i].unum = i;  pi.team = 1;  d_team2.resize(11,pi);  for (unsigned i = 0; i < 11; ++i)    d_team2[i].unum = i;}

⌨️ 快捷键说明

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