OpenTTD Source: src/ship_gui.cpp File Reference

OpenTTD Source 1.11.0-RC1

Functions
ship_gui.cpp File Reference
`#include "stdafx.h"`
`#include "vehicle_base.h"`
`#include "window_gui.h"`
`#include "gfx_func.h"`
`#include "vehicle_gui.h"`
`#include "strings_func.h"`
`#include "vehicle_func.h"`
`#include "spritecache.h"`
`#include "zoom_func.h"`
`#include "table/strings.h"`
`#include "safeguards.h"`

Go to the source code of this file.

## Functions
void | DrawShipImage (const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type)
| Draws an image of a ship. More...
void | DrawShipDetails (const Vehicle *v, int left, int right, int y)
| Draw the details for the given vehicle at the given position. More...

## Detailed Description

GUI for ships.

Definition in file ship_gui.cpp.

## Function Documentation

## ◆ DrawShipDetails()

void DrawShipDetails | ( | const Vehicle * | v,
|  | int | left,
|  | int | right,
|  | int | y
| ) |  |

Draw the details for the given vehicle at the given position.

Parameters

  v | current vehicle
  left | The left most coordinate to draw
  right | The right most coordinate to draw
  y | The y coordinate

Definition at line 64 of file ship_gui.cpp.

## ◆ DrawShipImage()

void DrawShipImage | ( | const Vehicle * | v,
|  | int | left,
|  | int | right,
|  | int | y,
|  | VehicleID | selection,
|  | EngineImageType | image_type
| ) |  |

Draws an image of a ship.

Parameters

  v | Front vehicle
  left | The minimum horizontal position
  right | The maximum horizontal position
  y | Vertical position to draw at
  selection | Selected vehicle to draw a frame around

Definition at line 32 of file ship_gui.cpp.