#include <tank.h>
Inherits WorldEntity.
Inheritance diagram for Tank:


Public Member Functions | |
| Tank () | |
| ~Tank () | |
| virtual void | createPresentPoint (int time_stamp) |
| Overloaded creation of present history point from WorldEntity. | |
| virtual void | render () |
| void | initByID (int params_ID) |
| Initializes Tank according to its ID in params. | |
| bool | initSpecific (int player_id) |
| Inits mPlayer field. | |
Private Attributes | |
| int | mHP |
| Current HPs of tank. | |
| int | mArmour |
| Current armour per cents of tank. | |
| int | mMaxHP |
| Maximum of HPs. | |
| int | mMaxArmour |
| Maximum of armour per cents (cannot be more than 100 :-)). | |
| double | mMaxSpeed |
| The top speed taht can the tank achieve. | |
| int | mWeight |
| Weight of the tank in kgs. | |
| int | mEnginePower |
| Power of engine in Watts. | |
| double | mTurnAngle |
| Ability of the tank to turn - in radians. | |
| Player * | mPlayer |
| Player who controlls this tank. | |
| double | mPitch |
| Pitch of the tank's weapon. | |
| double | mYaw |
| Yaw of the tank's weapon. | |
Definition at line 27 of file tank.h.
|
|
Definition at line 9 of file tank.cpp. References cTank, and CommonEntity::mType. |
|
|
|
|
|
Overloaded creation of present history point from WorldEntity.
Reimplemented from WorldEntity. Definition at line 49 of file tank.cpp. References CommonEntity::mID, HistoryPoint::mID, CommonEntity::mOrientation, HistoryPoint::mOrientation, mPitch, TanksHistoryPoint::mPitch, CommonEntity::mPosition, HistoryPoint::mPosition, WorldEntity::mPresentPoint, WorldEntity::mSpeed, HistoryPoint::mSpeed, HistoryPoint::mTimeStamp, mYaw, and TanksHistoryPoint::mYaw. |
|
|
Initializes Tank according to its ID in params.
Definition at line 20 of file tank.cpp. References Params::sTankParams::armor, assertL, Params::sTankParams::engine_power, gParams, Params::sTankParams::hp, Params::sTankParams::id, mArmour, Params::sTankParams::max_speed, mEnginePower, mHP, mMaxArmour, mMaxHP, mMaxSpeed, CommonEntity::mSubType, mTurnAngle, mWeight, Params::tank(), Params::sTankParams::turning, and Params::sTankParams::weight. Here is the call graph for this function: ![]() |
|
|
Inits mPlayer field.
Definition at line 41 of file tank.cpp. References gApp, Application::getGameCommon(), Game::getPlayer(), mPitch, mPlayer, and mYaw. Here is the call graph for this function: ![]() |
|
|
Reimplemented from CommonEntity. Definition at line 48 of file tank_client.cpp. References BOTTOM_BACK_RIGHT, CollisionModel::getModel(), glDrawCube(), CommonEntity::mColModel, CommonEntity::mOrientation, CommonEntity::mPosition, CDBox::mVertex, and TOP_FRONT_LEFT. Here is the call graph for this function: ![]() |
|
|
Current armour per cents of tank.
Definition at line 56 of file tank.h. Referenced by initByID(). |
|
|
Power of engine in Watts.
Definition at line 62 of file tank.h. Referenced by initByID(). |
|
|
Current HPs of tank.
Definition at line 55 of file tank.h. Referenced by initByID(). |
|
|
Maximum of armour per cents (cannot be more than 100 :-)).
Definition at line 59 of file tank.h. Referenced by initByID(). |
|
|
Maximum of HPs.
Definition at line 58 of file tank.h. Referenced by initByID(). |
|
|
The top speed taht can the tank achieve.
Definition at line 60 of file tank.h. Referenced by initByID(). |
|
|
Pitch of the tank's weapon.
Definition at line 68 of file tank.h. Referenced by createPresentPoint(), and initSpecific(). |
|
|
Player who controlls this tank.
Definition at line 65 of file tank.h. Referenced by initSpecific(). |
|
|
Ability of the tank to turn - in radians.
Definition at line 63 of file tank.h. Referenced by initByID(). |
|
|
Weight of the tank in kgs.
Reimplemented from WorldEntity. Definition at line 61 of file tank.h. Referenced by initByID(). |
|
|
Yaw of the tank's weapon.
Definition at line 69 of file tank.h. Referenced by createPresentPoint(), and initSpecific(). |
1.4.5