Skip to content

Structure of code #10

@Techcraft7

Description

@Techcraft7

Game class

Stores information on the game and players

Constructor

Take a list of (NOT NULL) players and create a map that suits the number of players.
If any player is null, throw an ArgumentNullException

Members

  • Map (Map)
  • Players (List)
  • TurnIndex (int {get; private set;})
  • StartGame (void)
  • AdvanceTurn (void)
  • And other methods needed for the above to work

Map class

Stores data on the map. Points connected to points.

Members

  • MapData

Options for data types of MapData

  • Location[][] and have a fixed distance to each place (32-64) on read BedWars maps
  • A node network (Better but more complicated)

More members

  • GetDistanceBetween (int) - Really only for the node network option

Player class

Members

  • Name (string)

Location class

Base for all of the classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions