Freeciv-3.3: /fast/freeciv/nightly/main/server/cityhand.h File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
cityhand.h File Reference
`#include "fc_types.h"`
`#include <hand_gen.h>`

Go to the source code of this file.

## Functions

void | really_handle_city_sell (struct player *pplayer, struct city *pcity, struct impr_type *pimprove)
void | really_handle_city_buy (struct player *pplayer, struct city *pcity)

## Function Documentation

## ◆ really_handle_city_buy()

void really_handle_city_buy | ( | struct player * | pplayer,
|  | struct city * | pcity
| ) |  |

Handle buying request. Caller is responsible to validate input before passing to this function if it comes from untrusted source.

Definition at line 293 of file cityhand.c.

Referenced by dai_spend_gold(), and handle_city_buy().

## ◆ really_handle_city_sell()

void really_handle_city_sell | ( | struct player * | pplayer,
|  | struct city * | pcity,
|  | struct impr_type * | pimprove
| ) |  |

Handle improvement selling request. Caller is responsible to validate input before passing to this function if it comes from untrusted source.

Definition at line 240 of file cityhand.c.

Referenced by handle_city_sell(), and try_to_sell_stuff().