Subastra
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions
construct.h File Reference
#include "../6502/chip.h"
#include "../list.h"
#include "../map.h"
#include "../rendering/instances.h"
#include "../vec2i.h"
Include dependency graph for construct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  block_t
 
struct  construct_t
 

Typedefs

typedef struct construct_t construct_t
 

Enumerations

enum  block_kind_t {
  BLOCK_KIND_MESH , BLOCK_KIND_THRUSTER , BLOCK_KIND_ENGINE , BLOCK_KIND_CHIP ,
  BLOCK_KIND_GYROSCOPE , BLOCK_KIND_CONTOLLER , BLOCK_KIND_ACCUMULATOR , BLOCK_KIND_count
}
 

Functions

static int block_kind_to_tile_index (block_kind_t kind)
 
static block_t block_new_mesh ()
 
static block_t block_new_thruster (int orientation)
 
static void block__external_call (chip_t *chip, block_t *block)
 
static void block_chip__external_call (chip_t *chip)
 
static block_t block_new_chip (allocator_t alloc, sz memory_size)
 

Typedef Documentation

◆ construct_t

typedef struct construct_t construct_t

Enumeration Type Documentation

◆ block_kind_t

Enumerator
BLOCK_KIND_MESH 
BLOCK_KIND_THRUSTER 
BLOCK_KIND_ENGINE 
BLOCK_KIND_CHIP 
BLOCK_KIND_GYROSCOPE 
BLOCK_KIND_CONTOLLER 
BLOCK_KIND_ACCUMULATOR 
BLOCK_KIND_count 

Function Documentation

◆ block__external_call()

static void block__external_call ( chip_t chip,
block_t block 
)
static

◆ block_chip__external_call()

static void block_chip__external_call ( chip_t chip)
static

◆ block_kind_to_tile_index()

static int block_kind_to_tile_index ( block_kind_t  kind)
static

◆ block_new_chip()

static block_t block_new_chip ( allocator_t  alloc,
sz  memory_size 
)
static

◆ block_new_mesh()

static block_t block_new_mesh ( )
static

◆ block_new_thruster()

static block_t block_new_thruster ( int  orientation)
static