|
| | AbstractKart (const std::string &ident, int world_kart_id, int position, const btTransform &init_transform, HandicapLevel handicap, std::shared_ptr< GE::GERenderInfo > ri) |
| | Creates a kart. More...
|
| |
|
const core::stringw & | getName () const |
| | Returns a name to be displayed for this kart.
|
| |
|
virtual void | reset () |
| | The reset position must be set before calling reset.
|
| |
|
virtual void | init (RaceManager::KartType type)=0 |
| |
|
virtual float | getSteerPercent () const |
| | Returns the current steering value for this kart.
|
| |
|
KartControl & | getControls () |
| | Returns all controls of this kart.
|
| |
|
const KartControl & | getControls () const |
| | Returns all controls of this kart - const version.
|
| |
|
const KartProperties * | getKartProperties () const |
| | Returns the kart properties of this kart.
|
| |
|
virtual void | changeKart (const std::string &new_ident, HandicapLevel handicap, std::shared_ptr< GE::GERenderInfo > ri, const KartData &kart_data=KartData()) |
| | Change to new kart instancely (used in network live join).
|
| |
|
const HandicapLevel | getHandicap () const |
| | Returns the handicap of this kart.
|
| |
|
void | setHandicap (const HandicapLevel h) |
| | Sets the handicap.
|
| |
|
virtual const std::string & | getIdent () const |
| | Returns a unique identifier for this kart (name of the directory the kart was loaded from).
|
| |
|
virtual float | getMaxSteerAngle () const =0 |
| | Returns the maximum steering angle for this kart, which depends on the speed.
|
| |
| virtual float | getSpeedForTurnRadius (float radius) const =0 |
| | Returns the (maximum) speed for a given turn radius. More...
|
| |
| virtual float | getTimeFullSteer (float steer) const =0 |
| | Returns the time till full steering is reached for this kart. More...
|
| |
|
const Attachment * | getAttachment () const |
| | Returns the current attachment.
|
| |
|
Attachment * | getAttachment () |
| | Returns the current attachment, non-const version.
|
| |
|
KartModel * | getKartModel () const |
| | Returns this kart's kart model.
|
| |
|
float | getKartLength () const |
| | Returns the length of the kart.
|
| |
|
float | getKartHeight () const |
| | Returns the height of the kart.
|
| |
|
float | getKartWidth () const |
| | Returns the width of the kart.
|
| |
|
float | getHighestPoint () const |
| | Returns the highest point of the kart (coordinate on up axis)
|
| |
| virtual void | kartIsInRestNow () |
| | Called after the kart comes to rest. More...
|
| |
| virtual float | getTimeForDistance (float distance) |
| | Returns the time at which the kart was at a given distance. More...
|
| |
|
bool | isWheeless () const |
| | Returns true if this kart has no wheels.
|
| |
| virtual const Vec3 & | getFrontXYZ () const =0 |
| | Returns the coordinates of the front of the kart. More...
|
| |
| const Vec3 & | getWheelGraphicsPosition (int i) const |
| | Returns the position of a wheel relative to the kart. More...
|
| |
|
AbstractKartAnimation * | getKartAnimation () |
| | Returns a kart animation (if any), or NULL if currently no kart animation is being shown.
|
| |
|
const AbstractKartAnimation * | getKartAnimation () const |
| |
| virtual void | setKartAnimation (AbstractKartAnimation *ka) |
| | Sets a new kart animation. More...
|
| |
|
unsigned int | getWorldKartId () const |
| | Returns the index of this kart in world.
|
| |
| virtual void | setController (Controller *controller)=0 |
| | Saves the old controller in m_saved_controller and stores a new controller. More...
|
| |
|
virtual Controller * | getController ()=0 |
| | Returns the controller of this kart.
|
| |
|
virtual const Controller * | getController () const =0 |
| | Returns the controller of this kart (const version).
|
| |
|
virtual const Skidding * | getSkidding () const =0 |
| | Returns the skidding object for this kart (which can be used to query skidding related values).
|
| |
|
virtual RaceManager::KartType | getType () const =0 |
| |
|
virtual Skidding * | getSkidding ()=0 |
| | Returns the skidding object for this kart (which can be used to query skidding related values), non-const.
|
| |
|
virtual bool | isEliminated () const =0 |
| | Returns true if the kart is eliminated.
|
| |
|
virtual void | eliminate ()=0 |
| | Marks this kart to be eliminated.
|
| |
|
virtual void | finishedRace (float time, bool from_server=false)=0 |
| |
|
virtual float | getFinishTime () const =0 |
| | Returns the finished time for a kart.
|
| |
|
virtual int | getBlockedByPlungerTicks () const =0 |
| | Returns true if the kart has a plunger attached to its face.
|
| |
| virtual void | blockViewWithPlunger ()=0 |
| | Sets that the view is blocked by a plunger. More...
|
| |
|
virtual bool | isSquashed () const =0 |
| | Returns if the kart is currently being squashed.
|
| |
| virtual bool | setSquash (float time, float slowdown)=0 |
| | Squashes this kart: it will scale the kart in up direction, and causes a slowdown while this kart is squashed. More...
|
| |
|
virtual void | unsetSquash ()=0 |
| | Makes the kart unsquashed again.
|
| |
| virtual float | getSpeed () const =0 |
| | Returns the speed of the kart in meters/second. More...
|
| |
|
virtual float | getCurrentMaxSpeed () const =0 |
| | Returns the current maximum speed for this kart, this includes all bonus and maluses that are currently applied.
|
| |
| virtual int | getSpeedIncreaseTicksLeft (unsigned int category) const =0 |
| | Returns how much increased speed time is left over in the given category. More...
|
| |
| virtual void | setBoostAI (bool boosted)=0 |
| | Sets the kart AI boost state. More...
|
| |
| virtual bool | getBoostAI () const =0 |
| | Returns the kart AI boost state. More...
|
| |
| virtual void | increaseMaxSpeed (unsigned int category, float add_speed, float engine_force, int duration, int fade_out_time)=0 |
| | Sets an increased maximum speed for a category. More...
|
| |
| virtual void | instantSpeedIncrease (unsigned int category, float add_max_speed, float speed_boost, float engine_force, int duration, int fade_out_time)=0 |
| | This adjusts the top speed using increaseMaxSpeed, but additionally causes an instant speed boost, which can be smaller than add-max-speed. More...
|
| |
| virtual void | setSlowdown (unsigned int category, float max_speed_fraction, int fade_in_time)=0 |
| | Defines a slowdown, which is in fraction of top speed. More...
|
| |
|
virtual float | getEnergy () const =0 |
| | Returns the remaining collected energy.
|
| |
| virtual void | collectedItem (ItemState *item_state)=0 |
| | Called when an item is collected. More...
|
| |
|
virtual int | getPosition () const =0 |
| | Returns the current position of this kart in the race.
|
| |
|
virtual void | setPosition (int p)=0 |
| | Set the current position of this kart in the race.
|
| |
|
virtual int | getInitialPosition () const =0 |
| | Returns the initial position of this kart.
|
| |
|
virtual bool | isOnGround () const =0 |
| | True if the wheels are touching the ground.
|
| |
|
virtual const SlipStream * | getSlipstream () const =0 |
| | Returns the slipstream object of this kart.
|
| |
|
virtual SlipStream * | getSlipstream ()=0 |
| | Returns the slipstream object of this kart.
|
| |
|
virtual void | setSlipstreamEffect (float f)=0 |
| | Activates a slipstream effect, atm that is display some nitro.
|
| |
|
virtual void | beep ()=0 |
| | Plays a beep sfx.
|
| |
| virtual bool | playCustomSFX (unsigned int type)=0 |
| | This function will play a particular character voice for this kart. More...
|
| |
|
virtual void | showZipperFire ()=0 |
| | Show fire to go with a zipper.
|
| |
| virtual void | handleZipper (const Material *m=NULL, bool play_sound=false)=0 |
| | Sets zipper time, and apply one time additional speed boost. More...
|
| |
|
virtual bool | hasFinishedRace () const =0 |
| | Returns true if this kart has finished the race.
|
| |
|
virtual void | setEnergy (float val)=0 |
| |
|
virtual bool | isOnMinNitroTime () const =0 |
| | Return whether nitro is being used despite the nitro button not being pressed due to minimal use time requirements.
|
| |
|
virtual const Material * | getMaterial () const =0 |
| | Returns the current material the kart is on.
|
| |
|
virtual const Material * | getLastMaterial () const =0 |
| | Returns the previous material the kart was one (which might be the same as getMaterial() ).
|
| |
|
virtual const Powerup * | getPowerup () const =0 |
| | Returns the current powerup.
|
| |
|
virtual Powerup * | getPowerup ()=0 |
| | Returns the current powerup.
|
| |
|
virtual PowerupManager::PowerupType | getLastUsedPowerup ()=0 |
| | Returns the last used powerup type.
|
| |
|
virtual int | getNumPowerup () const =0 |
| | Returns the number of powerups.
|
| |
|
virtual KartGFX * | getKartGFX ()=0 |
| | Returns a points to this kart's graphical effects.
|
| |
|
virtual void | setPowerup (PowerupManager::PowerupType t, int n)=0 |
| |
|
virtual btKart * | getVehicle () const =0 |
| | Returns the bullet vehicle which represents this kart.
|
| |
|
virtual btQuaternion | getVisualRotation () const =0 |
| |
| virtual bool | isInRest () const =0 |
| | Returns true if the kart is 'resting', i.e. More...
|
| |
| virtual void | startEngineSFX ()=0 |
| | Starts the engine sound effect. More...
|
| |
| virtual void | adjustSpeed (float f)=0 |
| | Multiplies the velocity of the kart by a factor f (both linear and angular). More...
|
| |
| virtual void | setSpeed (float s)=0 |
| | This is used on the client side only to set the speed of the kart from the server information. More...
|
| |
|
virtual bool | isInvulnerable () const =0 |
| | Returns if the kart is invulnerable.
|
| |
|
virtual void | setInvulnerableTicks (int ticks)=0 |
| |
|
virtual bool | isShielded () const =0 |
| | Returns if the kart is protected by a shield.
|
| |
|
virtual void | setShieldTime (float t)=0 |
| |
|
virtual float | getShieldTime () const =0 |
| |
|
virtual void | decreaseShieldTime ()=0 |
| | Decreases the kart's shield time.
|
| |
|
virtual void | showStarEffect (float t)=0 |
| | Shows the star effect for a certain time.
|
| |
|
virtual const TerrainInfo * | getTerrainInfo () const =0 |
| | Returns the terrain info oject.
|
| |
| virtual void | crashed (AbstractKart *k, bool update_attachments)=0 |
| | Called when the kart crashes against another kart. More...
|
| |
|
virtual void | crashed (const Material *m, const Vec3 &normal)=0 |
| |
| virtual const Vec3 & | getNormal () const =0 |
| | Returns the normal of the terrain the kart is over atm. More...
|
| |
|
virtual const Vec3 & | getPreviousXYZ () const =0 |
| | Returns the position 0.25s before.
|
| |
|
virtual const Vec3 & | getRecentPreviousXYZ () const =0 |
| | Returns the most recent different previous position.
|
| |
|
virtual const float | getRecentPreviousXYZTime () const =0 |
| | Returns the time at which the recent previous position occured.
|
| |
| virtual float | getHoT () const =0 |
| | Returns the height of the terrain. More...
|
| |
|
virtual float | getTerrainPitch (float heading) const =0 |
| | Returns the pitch of the terrain depending on the heading.
|
| |
| virtual btTransform | getAlignedTransform (const float customPitch=-1)=0 |
| | Returns a bullet transform object located at the kart's position and oriented in the direction the kart is going. More...
|
| |
|
virtual void | setOnScreenText (const core::stringw &text)=0 |
| | Set a text that is displayed on top of a kart.
|
| |
|
virtual bool | getRaceResult () const =0 |
| | Returns whether this kart wins or loses.
|
| |
|
virtual bool | isGhostKart () const =0 |
| | Returns whether this kart is a ghost (replay) kart.
|
| |
|
virtual bool | isJumping () const =0 |
| | Returns whether this kart is jumping.
|
| |
|
virtual void | playSound (SFXBuffer *buffer)=0 |
| |
|
virtual bool | isVisible () const =0 |
| |
|
virtual void | makeKartRest () |
| | Called before go phase to make sure all karts start at the same position in case there is a slope.
|
| |
|
virtual void | setStartupBoost (float val)=0 |
| |
|
virtual float | getStartupBoost () const =0 |
| |
|
virtual float | getStartupBoostFromStartTicks (int ticks) const =0 |
| |
|
virtual Stars * | getStarsEffect () const =0 |
| |
|
int | getLiveJoinUntilTicks () const |
| |
|
void | setLiveJoinKart (int util_ticks) |
| |
|
virtual int | getNetworkConfirmedFinishTicks () const =0 |
| | Return the confirmed finish ticks (sent by the server) indicating that this kart has really finished the race.
|
| |
|
scene::ISceneNode * | getNode () const |
| | Returns the scene node of this moveable.
|
| |
| void | setNode (scene::ISceneNode *n) |
| | Sets the mesh for this model. More...
|
| |
|
virtual const btVector3 & | getVelocity () const |
| |
|
const btVector3 & | getVelocityLC () const |
| |
|
virtual void | setVelocity (const btVector3 &v) |
| |
|
const Vec3 & | getXYZ () const |
| |
|
float | getHeading () const |
| | Returns the heading between -pi and pi.
|
| |
|
float | getPitch () const |
| | Returns the pitch of the kart, restricted to between -pi/2 and pi/2.
|
| |
| float | getRoll () const |
| | Returns the roll of the kart between -pi and pi. More...
|
| |
|
const btQuaternion | getRotation () const |
| |
|
virtual void | flyUp () |
| | Enter flying mode.
|
| |
|
virtual void | flyDown () |
| |
|
virtual void | stopFlying () |
| |
|
virtual void | setXYZ (const Vec3 &a) |
| | Sets the XYZ coordinates of the moveable.
|
| |
|
void | setRotation (const btMatrix3x3 &m) |
| | Sets the rotation of the physical body this moveable.
|
| |
|
void | setRotation (const btQuaternion &q) |
| | Sets the rotation of the physical body this moveable.
|
| |
| virtual void | update (int ticks) |
| | Updates the current position and rotation from the corresponding physics body, and then calls updateGraphics to position the model correctly. More...
|
| |
|
btRigidBody * | getBody () const |
| |
| void | createBody (float mass, btTransform &trans, btCollisionShape *shape, float restitution) |
| | Creates the bullet rigid body for this moveable. More...
|
| |
|
const btTransform & | getTrans () const |
| |
| void | setTrans (const btTransform &t) |
| | Places this moveable at a certain location and stores this transform in this Moveable, so that it can be accessed easily. More...
|
| |
| void | updatePosition () |
| | Updates the current position and rotation. More...
|
| |
| virtual void | updateGraphics (float dt)=0 |
| | Called once per rendered frame. More...
|
| |
|
void | prepareSmoothing () |
| |
|
void | checkSmoothing () |
| |
|
const btTransform & | getSmoothedTrans () const |
| |
|
const Vec3 & | getSmoothedXYZ () const |
| |
Public Member Functions inherited from SmoothNetworkBody |
|
| SmoothNetworkBody (bool enable=false) |
| |
|
void | reset () |
| |
|
void | setEnable (bool val) |
| |
|
bool | isEnabled () const |
| |
|
void | setSmoothRotation (bool val) |
| |
|
void | setAdjustVerticalOffset (bool val) |
| |
|
void | prepareSmoothing (const btTransform ¤t_transform, const Vec3 ¤t_velocity) |
| |
| void | checkSmoothing (const btTransform ¤t_transform, const Vec3 ¤t_velocity) |
| | Adds a new error between graphical and physical position/rotation. More...
|
| |
|
void | updateSmoothedGraphics (const btTransform ¤t_transform, const Vec3 ¤t_velocity, float dt) |
| |
|
void | setSmoothedTransform (const btTransform &t) |
| |
|
const btTransform & | getSmoothedTrans () const |
| |
|
const Vec3 & | getSmoothedXYZ () const |
| |
|
void | setMinAdjustLength (float val) |
| |
|
void | setMaxAdjustLength (float val) |
| |
|
void | setMinAdjustSpeed (float val) |
| |
|
void | setMaxAdjustTime (float val) |
| |
|
void | setAdjustLengthThreshold (float val) |
| |