?? gamemodel.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 + -