#ifndef CAMERA_H
#define CAMERA_H

#import <stdio.h>

#import <raylib.h>
//#import <yesmath.h>

#import <yeslib.h>
#import "Player.h"

@class Player;

@interface GameCamera : YSObject {
@public
    Camera3D camera;

@private
    int mode;
    Player *attachedPlayer;

    Vector2 crosshair;
    Color crosshairColor;
    float crosshairSize;
}

-(id) init;
-(void) update;
-(void) attach: (Player *) player;
-(void) showPos;
-(void) showTarget;
-(void) drawCrosshair;
-(void) drawWeapon;
-(bool) raycast: (BoundingBox) bbox;
-(Camera3D *) addressOfCamera;
@end

#endif