b3feddfef3
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
#pragma once
|
|
// Pos implements Comparable<Pos>
|
|
// We don't REALLY need it as it's main use it to make things easy
|
|
// to handle in the java array/list classes, but adding to help
|
|
// maintain as much original code as possible
|
|
|
|
//class Pos //implements Comparable<Pos>
|
|
class Pos
|
|
{
|
|
public:
|
|
int x;
|
|
int y;
|
|
int z;
|
|
|
|
Pos();
|
|
|
|
Pos(int x, int y, int z);
|
|
|
|
Pos(Pos *position);
|
|
|
|
//@Override
|
|
//public boolean equals(Object other)
|
|
bool equals(void *other);
|
|
|
|
int hashCode();
|
|
int compareTo(Pos *pos);
|
|
Pos *offset(int x, int y, int z);
|
|
void set(int x, int y, int z);
|
|
void set(Pos *pos);
|
|
|
|
Pos *above();
|
|
Pos *above(int steps);
|
|
Pos *below();
|
|
Pos *below(int steps);
|
|
Pos *north();
|
|
Pos *north(int steps);
|
|
Pos *south();
|
|
Pos *south(int steps);
|
|
Pos *west();
|
|
Pos *west(int steps);
|
|
Pos *east();
|
|
Pos *east(int steps);
|
|
|
|
void move(int x, int y, int z);
|
|
void move(Pos pos);
|
|
void moveX(int steps);
|
|
void moveY(int steps);
|
|
void moveZ(int steps);
|
|
void moveUp(int steps);
|
|
void moveUp();
|
|
void moveDown(int steps);
|
|
void moveDown();
|
|
void moveEast(int steps);
|
|
void moveEast();
|
|
void moveWest(int steps);
|
|
void moveWest();
|
|
void moveNorth(int steps);
|
|
void moveNorth();
|
|
void moveSouth(int steps);
|
|
void moveSouth();
|
|
|
|
double dist(int x, int y, int z);
|
|
double dist(Pos *pos);
|
|
float distSqr(int x, int y, int z);
|
|
float distSqr(Pos *pos);
|
|
}; |