StuBS
Cat Class Reference

#include <user/graphics/cat.h>

Collaboration diagram for Cat:
[legend]

Public Member Functions

 Cat (const char *image="cat.png")
 
void attract ()
 
void walk ()
 

Private Attributes

const unsigned animationCount = 12
 
const unsigned height = 199
 
const unsigned width = 392
 
int x
 
int y
 
unsigned animationCurrent
 
int position
 
PNG image
 

Constructor & Destructor Documentation

◆ Cat()

Cat::Cat ( const char *  image = "cat.png")
explicit

Member Function Documentation

◆ attract()

void Cat::attract ( )

◆ walk()

void Cat::walk ( )

Member Data Documentation

◆ animationCount

const unsigned Cat::animationCount = 12
private

◆ height

const unsigned Cat::height = 199
private

◆ width

const unsigned Cat::width = 392
private

◆ x

int Cat::x
private

◆ y

int Cat::y
private

◆ animationCurrent

unsigned Cat::animationCurrent
private

◆ position

int Cat::position
private

◆ image

PNG Cat::image
private

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