|
Barotrauma Client Doc
|
Classes | |
| struct | LocationChangeInfo |
Public Member Functions | |
| IEnumerable< int > | GetSelectedMissionIndices () |
| Map (CampaignSettings settings) | |
| Map (CampaignMode campaign, string seed) | |
| Generate a new campaign map from the seed More... | |
| Biome | GetBiome (Vector2 mapPos) |
| Biome | GetBiome (float xPos) |
| void | MoveToNextLocation () |
| void | SetLocation (int index) |
| void | SelectLocation (int index) |
| void | SelectLocation (Location location) |
| void | SelectMission (IEnumerable< int > missionIndices) |
| void | SelectRandomLocation (bool preferUndiscovered) |
| void | ProgressWorld (CampaignMode campaign, CampaignMode.TransitionType transitionType, float roundDuration) |
| void | Discover (Location location, bool checkTalents=true) |
| void | Visit (Location location) |
| void | ClearLocationHistory () |
| int? | GetDiscoveryIndex (Location location) |
| int? | GetVisitIndex (Location location, bool includeLocationsWithoutOutpost=false) |
| bool | IsDiscovered (Location location) |
| bool | IsVisited (Location location) |
| void | LoadState (CampaignMode campaign, XElement element, bool showNotifications) |
| Load the state of an existing map from xml (current state of locations, where the crew is now, etc). More... | |
| void | Save (XElement element) |
| void | Remove () |
| void | DrawNotifications (SpriteBatch spriteBatch, GUICustomComponent container) |
| void | Update (CampaignMode campaign, float deltaTime, GUICustomComponent mapContainer) |
| void | Draw (CampaignMode campaign, SpriteBatch spriteBatch, GUICustomComponent mapContainer) |
| void | ResetPendingSub () |
| Resets pendingSubInfo and forces crush depth to be calculated again for icon displaying purposes More... | |
Static Public Member Functions | |
| static bool | LocationOrConnectionWithinDistance (Location startLocation, int maxDistance, Func< Location, bool > criteria, Func< LocationConnection, bool > connectionCriteria=null) |
| static int | GetDistanceToClosestLocationOrConnection (Location startLocation, int maxDistance, Func< Location, bool > criteria, Func< LocationConnection, bool > connectionCriteria=null) |
| Get the shortest distance from the start location to another location that satisfies the specified criteria. More... | |
| static Map | Load (CampaignMode campaign, XElement element) |
| Load a previously saved map from an xml element More... | |
| static void | DrawNoise (SpriteBatch spriteBatch, Rectangle rect, float strength) |
Public Attributes | |
| bool | AllowDebugTeleport |
| Action< Location, LocationConnection > | OnLocationSelected |
| Action< LocationConnection, IEnumerable< Mission > > | OnMissionsSelected |
| readonly NamedEvent< LocationChangeInfo > | OnLocationChanged = new NamedEvent<LocationChangeInfo>() |
| From -> To More... | |
| Radiation | Radiation |
| Vector2 | DrawOffset |
Properties | |
| int | Width [get] |
| int | Height [get] |
| IReadOnlyList< Location > | EndLocations [get] |
| Location | StartLocation [get] |
| Location | CurrentLocation [get] |
| int | CurrentLocationIndex [get] |
| Location | SelectedLocation [get] |
| int | SelectedLocationIndex [get] |
| LocationConnection | SelectedConnection [get] |
| string | Seed [get] |
| List< Location > | Locations [get] |
| List< LocationConnection > | Connections [get] |
| Location | HighlightedLocation [get] |
Definition at line 11 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Barotrauma.Map.Map | ( | CampaignSettings | settings | ) |
Definition at line 81 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Barotrauma.Map.Map | ( | CampaignMode | campaign, |
| string | seed | ||
| ) |
Generate a new campaign map from the seed
Definition at line 285 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.ClearLocationHistory | ( | ) |
Definition at line 1398 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.Discover | ( | Location | location, |
| bool | checkTalents = true |
||
| ) |
Definition at line 1379 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.Draw | ( | CampaignMode | campaign, |
| SpriteBatch | spriteBatch, | ||
| GUICustomComponent | mapContainer | ||
| ) |
Definition at line 714 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
|
static |
Definition at line 964 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
| void Barotrauma.Map.DrawNotifications | ( | SpriteBatch | spriteBatch, |
| GUICustomComponent | container | ||
| ) |
Definition at line 307 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
| Biome Barotrauma.Map.GetBiome | ( | float | xPos | ) |
Definition at line 756 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Biome Barotrauma.Map.GetBiome | ( | Vector2 | mapPos | ) |
Definition at line 751 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| int? Barotrauma.Map.GetDiscoveryIndex | ( | Location | location | ) |
Definition at line 1404 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
static |
Get the shortest distance from the start location to another location that satisfies the specified criteria.
Definition at line 1340 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| IEnumerable<int> Barotrauma.Map.GetSelectedMissionIndices | ( | ) |
Definition at line 61 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| int? Barotrauma.Map.GetVisitIndex | ( | Location | location, |
| bool | includeLocationsWithoutOutpost = false |
||
| ) |
Definition at line 1411 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| bool Barotrauma.Map.IsDiscovered | ( | Location | location | ) |
Definition at line 1427 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| bool Barotrauma.Map.IsVisited | ( | Location | location | ) |
Definition at line 1433 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
static |
Load a previously saved map from an xml element
Definition at line 1444 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.LoadState | ( | CampaignMode | campaign, |
| XElement | element, | ||
| bool | showNotifications | ||
| ) |
Load the state of an existing map from xml (current state of locations, where the crew is now, etc).
Definition at line 1457 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
static |
Definition at line 1331 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.MoveToNextLocation | ( | ) |
Definition at line 955 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.ProgressWorld | ( | CampaignMode | campaign, |
| CampaignMode.TransitionType | transitionType, | ||
| float | roundDuration | ||
| ) |
Definition at line 1160 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.Remove | ( | ) |
Definition at line 1713 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.ResetPendingSub | ( | ) |
Resets pendingSubInfo and forces crush depth to be calculated again for icon displaying purposes
Definition at line 1274 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
| void Barotrauma.Map.Save | ( | XElement | element | ) |
Definition at line 1634 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.SelectLocation | ( | int | index | ) |
Definition at line 1047 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.SelectLocation | ( | Location | location | ) |
Definition at line 1092 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.SelectMission | ( | IEnumerable< int > | missionIndices | ) |
Definition at line 1115 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.SelectRandomLocation | ( | bool | preferUndiscovered | ) |
Definition at line 1145 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.SetLocation | ( | int | index | ) |
Definition at line 1017 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| void Barotrauma.Map.Update | ( | CampaignMode | campaign, |
| float | deltaTime, | ||
| GUICustomComponent | mapContainer | ||
| ) |
Definition at line 488 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
| void Barotrauma.Map.Visit | ( | Location | location | ) |
Definition at line 1390 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| bool Barotrauma.Map.AllowDebugTeleport |
Definition at line 13 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Vector2 Barotrauma.Map.DrawOffset |
Definition at line 55 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
| readonly NamedEvent<LocationChangeInfo> Barotrauma.Map.OnLocationChanged = new NamedEvent<LocationChangeInfo>() |
From -> To
Definition at line 40 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Action<Location, LocationConnection> Barotrauma.Map.OnLocationSelected |
Definition at line 22 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Action<LocationConnection, IEnumerable<Mission> > Barotrauma.Map.OnMissionsSelected |
Definition at line 23 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
| Radiation Barotrauma.Map.Radiation |
Definition at line 77 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 75 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 47 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 49 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 43 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 20 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 51 of file BarotraumaClient/ClientSource/Map/Map/Map.cs.
|
get |
Definition at line 70 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 68 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 66 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 54 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 56 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 45 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.
|
get |
Definition at line 19 of file BarotraumaShared/SharedSource/Map/Map/Map.cs.