Oakfolks Gold_1.14
Oakfolks coop game
Loading...
Searching...
No Matches
AMainGamemode Class Reference

Main game mode for cooperative gameplay. More...

#include <MainGamemode.h>

Inheritance diagram for AMainGamemode:
Collaboration diagram for AMainGamemode:

Public Member Functions

 AMainGamemode ()
 Initializes the game mode with default pawn class.
 
virtual void BeginPlay () override
 Configures multiplayer and creates the second player.
 
virtual void Tick (float DeltaTime) override
 Updates the game mode each frame.
 
void CreateLocalPlayer ()
 Creates a second local player for split-screen cooperation.
 

Detailed Description

Main game mode for cooperative gameplay.

Manages local multiplayer setup and camera configuration for two-player sessions

Constructor & Destructor Documentation

◆ AMainGamemode()

AMainGamemode::AMainGamemode ( )

Initializes the game mode with default pawn class.

Sets up the blueprinted character class as the default pawn

Member Function Documentation

◆ BeginPlay()

void AMainGamemode::BeginPlay ( )
overridevirtual

Configures multiplayer and creates the second player.

Sets maximum splitscreen players and initializes local co-op

Here is the call graph for this function:

◆ CreateLocalPlayer()

void AMainGamemode::CreateLocalPlayer ( )

Creates a second local player for split-screen cooperation.

PLAYER MANAGEMENT //////// Local multiplayer setup

Spawns the second player and configures the camera system

Here is the caller graph for this function:

◆ Tick()

void AMainGamemode::Tick ( float DeltaTime)
overridevirtual

Updates the game mode each frame.

Handles any per-frame game mode logic

Parameters
DeltaTimeTime elapsed since the last frame in seconds

The documentation for this class was generated from the following files: